Pure[edit | edit source]
Must be always passed not depending on any configuration.
Should be placed in the same VS-project where tested code is. It allows often to use the 'internal' instead of a 'public' access modifier.
Should be placed in the subfolder Tests. In such case it is easy to find tests for investigated code and tests will be moved together with the tested code.
Code of unit-tests should not be compiled in Release configuration of a VS-project. This is done by conditional compilation
#if DEBUG ... #endif