1 | NUnit Samples
|
---|
2 |
|
---|
3 | This directory contains sample applications demonstrating the use of NUnit and organized as follows...
|
---|
4 |
|
---|
5 | CSharp: Samples in C#
|
---|
6 |
|
---|
7 | Failures: Demonstrates 4 failing tests and one that is not run.
|
---|
8 |
|
---|
9 | Money: This is a C# version of the money example which is found in most xUnit implementations. Thanks to Kent Beck.
|
---|
10 |
|
---|
11 | Money-Port: This shows how the Money example can be ported from Version 1 of NUnit with minimal changes.
|
---|
12 |
|
---|
13 | Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax.
|
---|
14 |
|
---|
15 | JSharp: Samples in J#
|
---|
16 |
|
---|
17 | Failures: Demonstrates 4 failing tests and one that is not run.
|
---|
18 |
|
---|
19 | CPP: C++ Samples
|
---|
20 |
|
---|
21 | MANAGED: Managed C++ Samples (VS 2003 compatible)
|
---|
22 |
|
---|
23 | Failures: Demonstrates 4 failing tests and one that is not run.
|
---|
24 |
|
---|
25 | CPP-CLI: C++/CLI Samples (VS 2005 only)
|
---|
26 |
|
---|
27 | Failures: Demonstrates 4 failing tests and one that is not run.
|
---|
28 |
|
---|
29 | Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax.
|
---|
30 |
|
---|
31 | VB: Samples in VB.NET
|
---|
32 |
|
---|
33 | Failures: Demonstrates 4 failing tests and one that is not run.
|
---|
34 |
|
---|
35 | Money: This is a VB.NET version of the money example found in most xUnit implementations. Thanks to Kent Beck.
|
---|
36 |
|
---|
37 | Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax.
|
---|
38 |
|
---|
39 | Extensibility: Examples of extending NUnit
|
---|
40 |
|
---|
41 | Framework:
|
---|
42 |
|
---|
43 | Core:
|
---|
44 |
|
---|
45 | TestSuiteExtension
|
---|
46 |
|
---|
47 | TestFixtureExtension
|
---|
48 |
|
---|
49 |
|
---|
50 | Building the Samples
|
---|
51 |
|
---|
52 | A Visual Studio 2003 project is included for most samples.
|
---|
53 | Visual Studio 2005 will convert the format automatically upon
|
---|
54 | opening it. The C++/CLI samples, as well as other samples that
|
---|
55 | depend on .NET 2.0 features, include Visual Studio 2005 projects.
|
---|
56 |
|
---|
57 | In most cases, you will need to remove the reference to the
|
---|
58 | nunit.framework assembly and replace it with a reference to
|
---|
59 | your installed copy of NUnit.
|
---|
60 |
|
---|
61 | To build using the Microsoft compiler, use a command similar
|
---|
62 | to the following:
|
---|
63 |
|
---|
64 | csc /target:library /r:<path-to-NUnit>/nunit.framework.dll example.cs
|
---|
65 |
|
---|
66 | To build using the mono compiler, use a command like this:
|
---|
67 |
|
---|
68 | msc /target:library /r:<path-to-NUNit>/nunit.framework.dll example.cs
|
---|
69 |
|
---|