24 #include <vtkDebugLeaks.h> 28 CPPUNIT_TEST_SUITE(mitkColorSequenceRainbowTestSuite);
30 MITK_TEST(GetNextColor_ReturnsADifferentColor);
31 MITK_TEST(GoToBegin_NextCallReturnsSameColorAsFirstCall);
32 MITK_TEST(GetNextColor_CanWrapAroundWithoutCrashing);
33 CPPUNIT_TEST_SUITE_END();
45 void tearDown()
override 49 void GetNextColor_ReturnsADifferentColor()
55 CPPUNIT_ASSERT_MESSAGE(
"Two consecutive colors are not equal.", color1 != color2);
58 void GoToBegin_NextCallReturnsSameColorAsFirstCall()
65 CPPUNIT_ASSERT_MESSAGE(
"GoToBegin is identical to beginning.", color1 == color2);
68 void GetNextColor_CanWrapAroundWithoutCrashing()
85 CPPUNIT_FAIL(
"Exception during rainbow color sequence color generation");
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
Color GetNextColor() override
method to return another color
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
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)