28 #include <vtkDebugLeaks.h>
32 CPPUNIT_TEST_SUITE(mitkExampleDataStructureTestSuite);
35 MITK_TEST(Append_ExampleString_AddsExampleStringToData);
36 CPPUNIT_TEST_SUITE_END();
40 std::string m_DefaultDataString;
49 m_DefaultDataString =
"This is the example data content\nAnd a second line\n";
51 m_Data->SetData(m_DefaultDataString);
54 void tearDown()
override
56 m_DefaultDataString =
"";
60 void Append_ExampleString_AddsExampleStringToData()
62 std::string appendedString =
"And a third line\n";
63 std::string wholeString = m_DefaultDataString + appendedString;
64 m_Data->AppendAString(appendedString);
66 CPPUNIT_ASSERT_MESSAGE(
"Checking whether string was correctly appended.", m_Data->GetData() == wholeString);
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
Test fixture for parameterized tests.