104 | | Let us take the '''!SingletonUnitTest''' as an example, located in [source:src/Patterns/unittests] that tests correct implementation of the Singleton pattern in [source:src/Patterns/Singleton_impl.hpp]. The unit test consists of the following files: |
105 | | * source file with the test implementation, e.g. [source:src/Patterns/unittests/SingletonTest.cpp] |
106 | | * header file with the test definition, i.e. the class containing the test and all test functions to call, , e.g. [source:src/Patterns/unittests/SingletonTest.hpp] |
107 | | * [source:src/unittests/UnitTestMain.cpp] with the main function calling the unit test runner. |
| 104 | Let us take the '''!SingletonUnitTest''' as an example, located in [source:ThirdParty/CodePatterns/src/Patterns/unittests] that tests correct implementation of the Singleton pattern in [source:ThirdParty/CodePatterns/src/Patterns/Singleton_impl.hpp]. The unit test consists of the following files: |
| 105 | * source file with the test implementation, e.g. [source:ThirdParty/CodePatterns/src/Patterns/unittests/SingletonTest.cpp] |
| 106 | * header file with the test definition, i.e. the class containing the test and all test functions to call, , e.g. [source:ThirdParty/CodePatterns/src/Patterns/unittests/SingletonTest.hpp] |
| 107 | * [source:ThirdParty/CodePatterns/src/unittests/UnitTestMain.cpp] with the main function calling the unit test runner. |