23 CPPUNIT_TEST_SUITE(mitkPointSetEqualTestSuite);
24 MITK_TEST(Equal_CloneAndOriginal_ReturnsTrue);
25 MITK_TEST(Equal_DifferentGeometries_ReturnsFalse);
26 MITK_TEST(Equal_DifferentNumberOfPoints_ReturnsFalse);
27 MITK_TEST(Equal_DifferentPoints_ReturnsFalse);
28 CPPUNIT_TEST_SUITE_END();
43 m_AnotherPointSet = m_PointSet->Clone();
46 void tearDown()
override 49 m_AnotherPointSet =
nullptr;
52 void Equal_CloneAndOriginal_ReturnsTrue()
55 MITK_ASSERT_EQUAL(newPointSet, newPointSet->Clone(),
"A clone should be equal to its original.");
58 void Equal_DifferentGeometries_ReturnsFalse()
64 m_AnotherPointSet->GetGeometry()->SetOrigin(origin);
69 void Equal_DifferentNumberOfPoints_ReturnsFalse()
76 m_PointSet->InsertPoint(1, tmpPoint);
77 m_PointSet->InsertPoint(2, tmpPoint);
79 m_AnotherPointSet->InsertPoint(1, tmpPoint);
82 m_PointSet, m_AnotherPointSet,
"One pointset has two points the other has one. Result should be false.");
85 void Equal_DifferentPoints_ReturnsFalse()
92 m_PointSet->InsertPoint(1, tmpPoint);
95 m_AnotherPointSet->InsertPoint(1, tmpPoint);
98 m_PointSet, m_AnotherPointSet,
"Two pointsets with different points. Result should be false.");
MITK_TEST_SUITE_REGISTRATION(mitkImageToItk)
#define MITK_TEST(TESTMETHOD)
Adds a test to the current test suite.
#define MITK_ASSERT_NOT_EQUAL(OBJ1, OBJ2, MSG)
Testing macro to test if two objects are not equal.
Test fixture for parameterized tests.
#define MITK_ASSERT_EQUAL(EXPECTED, ACTUAL, MSG)
Testing macro to test if two objects are equal.
MITKCORE_EXPORT const ScalarType eps