28 #include <vtkDebugLeaks.h>
32 CPPUNIT_TEST_SUITE(mitkColorSequenceRainbowTestSuite);
34 MITK_TEST(GetNextColor_ReturnsADifferentColor);
35 MITK_TEST(GoToBegin_NextCallReturnsSameColorAsFirstCall);
36 MITK_TEST(GetNextColor_CanWrapAroundWithoutCrashing);
37 CPPUNIT_TEST_SUITE_END();
49 void tearDown()
override
53 void GetNextColor_ReturnsADifferentColor()
59 CPPUNIT_ASSERT_MESSAGE(
"Two consecutive colors are not equal.", color1 != color2);
62 void GoToBegin_NextCallReturnsSameColorAsFirstCall()
69 CPPUNIT_ASSERT_MESSAGE(
"GoToBegin is identical to beginning.", color1 == color2);
72 void GetNextColor_CanWrapAroundWithoutCrashing()
89 CPPUNIT_FAIL(
"Exception during rainbow color sequence color generation");
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
virtual Color GetNextColor() override
method to return another color
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
virtual void GoToBegin() override
method to set the color-index to begin again
Test fixture for parameterized tests.
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)