source: BMXNET_RPMS_dotNET_UTILITIES-BMX/branch/IHS BMX Framework/lib/NUnit/NUnit-2.5.10.11092/samples/Extensibility/Core/SampleFixtureExtension/ReadMe.txt@ 1146

Last change on this file since 1146 was 1146, checked in by Sam Habiel, 13 years ago

Initial Import of BMX4

File size: 1.8 KB
Line 
1SampleSuiteExtension Example
2
3This is a minimal example of a SuiteBuilder extension. It extends
4NUnit.Core.TestSuite test suite and creates a fixture that runs every
5test starting with "SampleTest..." It packages both the core extension
6and the attribute used in the tests in the same assembly.
7
8SampleSuiteExtension Class
9
10This class derives from NUnit.Framework.TestSuite and represents the
11extended suite within NUnit. Because it inherits from TestSuite,
12rather than TestFixture, it has to construct its own fixture object and
13find its own tests. Everything is done in the constructor for simplicity.
14
15SampleSuiteExtensionBuilder
16
17This class is the actual SuiteBuilder loaded by NUnit as an add-in.
18It recognizes the SampleSuiteExtensionAttribute and invokes the
19SampleSuiteExtension constructor to build the suite.
20
21SampleSuiteExtensionAttribute
22
23This is the special attribute used to mark tests to be constructed
24using this add-in. It is the only class referenced from the user tests.
25
26Note on Building this Extension
27
28If you use the Visual Studio solution, the NUnit references in both
29included projects must be changed so that they refer to the copy of
30NUnit in which you want to install the extension. The post-build step
31for the SampleSuiteExtension project must be changed to copy the
32extension into the addins directory for your NUnit install.
33
34NOTE:
35
36The references to nunit.core and nunit.common in the
37SampleSuiteExtension project have their Copy Local property set to
38false, rather than the Visual Studio default of true. In developing
39extensions, it is essential there be no extra copies of these assemblies
40be created. Once the extension is complete, those who install it in
41binary form will not need to deal with this issue.
42
43
Note: See TracBrowser for help on using the repository browser.