From IT Skills
Jump to: navigation, search

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

Subcategories

This category has only the following subcategory.

Pages in category "Unit testing"

This category contains only the following page.