| 128 | // MITK_TEST_CONDITION( name.compare(myMP->GetName(),0,9), "Testing if a Name object was set correctly" ) |
| 129 | } |
| 130 | void testSetColor() |
| 131 | { |
| 132 | mitk::Material::Color color; |
| 133 | color.Set(0, 0, 0); |
| 134 | myMP = mitk::Material::New(); |
| 135 | myMP->SetColor(color); |
| 136 | MITK_TEST_CONDITION_REQUIRED(myMP.IsNotNull(), "Testing instantiation") |
| 137 | MITK_TEST_CONDITION(ColorEqual(color, myMP->GetColor()), "Testing if a color was set correctly") |
| 138 | color.Set(0, 0, 0); |
| 139 | myMP->SetColor(color); |
| 140 | MITK_TEST_CONDITION(ColorEqual(color, myMP->GetColor()), "Testing if a color was set correctly") |
| 141 | } |
| 142 | |
| 143 | void testSetColorCoefficient() |
| 144 | { |
no test coverage detected