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

Method testSetSpecularColor

Modules/Core/test/mitkMaterialTest.cpp:151–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 "Testing if a colorcoefficent was set correctly")
150 }
151 void testSetSpecularColor()
152 {
153 mitk::Material::Color color;
154 color.Set(0, 0, 0);
155 myMP = mitk::Material::New();
156 myMP->SetSpecularColor(color);
157 MITK_TEST_CONDITION(ColorEqual(color, myMP->GetSpecularColor()), "Testing if a SpecularColor was set correctly")
158 }
159
160 void testSetSpecularCoefficient()
161 {

Callers 1

mitkMaterialTestFunction · 0.80

Calls 5

ColorEqualFunction · 0.85
SetSpecularColorMethod · 0.80
GetSpecularColorMethod · 0.80
NewFunction · 0.50
SetMethod · 0.45

Tested by

no test coverage detected