| 130 | } |
| 131 | |
| 132 | void TestSetValue() |
| 133 | { |
| 134 | mitk::Label::Pointer label = mitk::Label::New(); |
| 135 | mitk::Label::PixelType initialValue(0); |
| 136 | mitk::Label::PixelType valueToBeCompared = label->GetValue(); |
| 137 | CPPUNIT_ASSERT_MESSAGE("Initial label has wrong value", initialValue == valueToBeCompared); |
| 138 | |
| 139 | label->SetValue(12345); |
| 140 | valueToBeCompared = 12345; |
| 141 | initialValue = label->GetValue(); |
| 142 | CPPUNIT_ASSERT_MESSAGE("Label has wrong value", initialValue == valueToBeCompared); |
| 143 | } |
| 144 | |
| 145 | void TestSetProperty() |
| 146 | { |