27 CPPUNIT_TEST_SUITE(mitkPointSetEqualTestSuite);
28 MITK_TEST(Equal_CloneAndOriginal_ReturnsTrue);
29 MITK_TEST(Equal_DifferentGeometries_ReturnsFalse);
30 MITK_TEST(Equal_DifferentNumberOfPoints_ReturnsFalse);
31 MITK_TEST(Equal_DifferentPoints_ReturnsFalse);
32 CPPUNIT_TEST_SUITE_END();
47 m_AnotherPointSet = m_PointSet->Clone();
50 void tearDown()
override
53 m_AnotherPointSet =
nullptr;
56 void Equal_CloneAndOriginal_ReturnsTrue()
59 MITK_ASSERT_EQUAL(newPointSet, newPointSet->Clone(),
"A clone should be equal to its original.");
62 void Equal_DifferentGeometries_ReturnsFalse()
68 m_AnotherPointSet->GetGeometry()->SetOrigin(origin);
73 void Equal_DifferentNumberOfPoints_ReturnsFalse()
80 m_PointSet->InsertPoint(1, tmpPoint);
81 m_PointSet->InsertPoint(2, tmpPoint);
83 m_AnotherPointSet->InsertPoint(1, tmpPoint);
86 m_PointSet, m_AnotherPointSet,
"One pointset has two points the other has one. Result should be false.");
89 void Equal_DifferentPoints_ReturnsFalse()
96 m_PointSet->InsertPoint(1, tmpPoint);
99 m_AnotherPointSet->InsertPoint(1, tmpPoint);
102 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