Game Development Reference
In-Depth Information
Figure 10.4 Screenshot of NUnit after adding a target assembly.
NUnit displays all the test assemblies and fixtures in a hierarchical fashion, and it
executes tests in a similar way. Clicking the Run button will begin the tests, and all
the tests below the currently selected node in the assembly tree will execute. This
allows you to target all, some, or specific tests to run. You can group tests into cat-
egories as well.
Figure 10.5 shows the NUnit interface after the tests have been executed. You will
notice that the output from errors and ignored tests appear in the tab group on the
right, whereas successful tests are not as verbose. Successful tests appear green in
the assembly tree, errors appear red, and ignored tests appear yellow.
Your assemblies may require a configuration file to function correctly, in which case
it is important to note that NUnit creates a new AppDomain for each test assembly,
so the configuration file must reside in the same directory as the assembly.
Figure 10.5 Screenshot of NUnit after running the tests.
Search Nedrilad ::

Custom Search