Skip to content

Unit Testing

David Mesquita-Morris edited this page Feb 22, 2015 · 4 revisions

The approach to unit testing state.cs is very simple. An additional console application should be built from the files under the test directory. In the post-build events for that assembly, enter call $(TargetPath).

As the tests are written with a set of assertions, this will cause the build to break if any of the assertions fail.

As the tests require state.cs, it will get rebuilt if state.cs changes and the tests will therefore run.

Clone this wiki locally