Configuration
If multiple versions of the .NET framework are installed, the configuration
files nunit-gui.exe.config and
nunit-console.exe.config control the
which one of them is selected when running the gui and console runner
respectively. As originally installed, that order is .NET 1.1, .NET 2.0
and .NET 1.0. To change which version is used, simply change the order
of the elements in the config files. The nunit-gui
About Box shows the current framework version.
Settings that you place in these files are not available to your tests
or to the production code you are testing. A separate config file is used
when running tests. If you are running tests from the test.dll assembly, the
config file should be named test.dll.config. If you are running tests from
the NUnit test project MyTests.nunit, the config file should be named
MyTests.config. In either case the config file must reside in the same
directory as the file from which it takes its name.
In addition to settings of your own, the config file for a set of tests
may contain information used by NUnit in loading your tests. In particular,
this allows you to control the apartment state and priority of the thread
that NUnit uses to run your tests. Other settings may be added in the future.
See the file nunit.tests.dll for an example.
|