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

Method TestSetProperty

Modules/Multilabel/Testing/mitkLabelTest.cpp:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 }
144
145 void TestSetProperty()
146 {
147 mitk::Label::Pointer label = mitk::Label::New();
148
149 mitk::StringProperty::Pointer prop = mitk::StringProperty::New("abc");
150 label->SetProperty("cba", prop);
151 std::string propVal;
152 label->GetStringProperty("cba", propVal);
153 CPPUNIT_ASSERT_MESSAGE("Initial label has wrong value", propVal.compare("abc") == 0);
154 }
155
156 void TestAlgorithmFunctions()
157 {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.50
SetPropertyMethod · 0.45
GetStringPropertyMethod · 0.45

Tested by

no test coverage detected