MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
TestIntersection.cpp File Reference
#include "MobileRT/Intersection.hpp"
#include <gtest/gtest.h>
Include dependency graph for TestIntersection.cpp:

Classes

class  TestIntersection
 

Functions

 TEST_F (TestIntersection, TestInvalidConstructor)
 
 TEST_F (TestIntersection, TestInvalidConstructor2)
 
 TEST_F (TestIntersection, TestInvalidConstructor3)
 
 TEST_F (TestIntersection, TestConstructor)
 
 TEST_F (TestIntersection, TestConstructor2)
 

Function Documentation

◆ TEST_F() [1/5]

TEST_F ( TestIntersection  ,
TestInvalidConstructor   
)

Tests the Intersection constructor with invalid parameters. In this case the normal has length of 0 and should be 1.

◆ TEST_F() [2/5]

TEST_F ( TestIntersection  ,
TestInvalidConstructor2   
)

Tests the Intersection constructor with invalid parameters. In this case the normal has length of 10 and should be 1.

◆ TEST_F() [3/5]

TEST_F ( TestIntersection  ,
TestInvalidConstructor3   
)

Tests the Intersection constructor with invalid parameters. In this case the distance is of length 0 and should be a positive value.

◆ TEST_F() [4/5]

TEST_F ( TestIntersection  ,
TestConstructor   
)

Tests the Intersection constructor.

Here is the call graph for this function:

◆ TEST_F() [5/5]

TEST_F ( TestIntersection  ,
TestConstructor2   
)

Tests the Intersection constructor.