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

Method TestSetName

Modules/Multilabel/Testing/mitkLabelTest.cpp:66–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void TestSetName()
67 {
68 mitk::Label::Pointer label = mitk::Label::New();
69 std::string initialName("Unknown label name");
70 std::string labelName = label->GetName();
71 CPPUNIT_ASSERT_MESSAGE("Initial label has wrong name", initialName.compare(labelName) == 0);
72
73 label->SetName("AwesomeLabel");
74 labelName = label->GetName();
75 CPPUNIT_ASSERT_MESSAGE("Label has wrong name", labelName.compare("AwesomeLabel") == 0);
76 }
77
78 void TestSetCenterOfMassIndex()
79 {

Callers

nothing calls this directly

Calls 3

NewFunction · 0.50
GetNameMethod · 0.45
SetNameMethod · 0.45

Tested by

no test coverage detected