MCPcopy Create free account
hub / github.com/MITK/MITK / TestSetValue

Method TestSetValue

Modules/Multilabel/Testing/mitkLabelTest.cpp:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.50
GetValueMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected