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

Function mitkMaterialTest

Modules/Core/test/mitkMaterialTest.cpp:330–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328};
329
330int mitkMaterialTest(int /* argc */, char * /*argv*/ [])
331{
332 // always start with this!
333 MITK_TEST_BEGIN("Material")
334
335 MaterialTest materialTest;
336
337 materialTest.testConstructor();
338 materialTest.testConstructorWithColorOpacity();
339 materialTest.testConstructorWithRedGreenBlueOpacity();
340 materialTest.testConstructorRedGreenBlueColorCoefficientSpecularCoefficientSpecularPowerOpacity();
341 materialTest.testConstructorColorColorCoefficientSpecularCoefficientSpecularPowerOpacity();
342 materialTest.testConstructorPropertyRedGreenBlueOpacityAndName();
343 materialTest.testAssignable();
344 materialTest.testOperatorAssign();
345 materialTest.testSetColor();
346 materialTest.testSetColorCoefficient();
347 materialTest.testSetSpecularColor();
348 materialTest.testSetSpecularCoefficient();
349 materialTest.testSetSpecularPower();
350 materialTest.testSetOpacity();
351 materialTest.testSetInterpolation();
352 materialTest.testSetRepresentation();
353 materialTest.testSetLineWidth();
354 materialTest.testInitialize();
355 materialTest.testOperatorequality();
356
357 // first test: did this work?
358 // using MITK_TEST_CONDITION_REQUIRED makes the test stop after failure, since
359 // it makes no sense to continue without an object.
360
361 // write your own tests here and use the macros from mitkTestingMacros.h !!!
362 // do not write to std::cout and do not return from this function yourself!
363
364 // always end with this!
365 MITK_TEST_END()
366}

Callers

nothing calls this directly

Tested by

no test coverage detected