nunit 2.4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/addinsDialog.html +74 -0
- data/docs/assertions.html +91 -0
- data/docs/attributes.html +89 -0
- data/docs/category.html +265 -0
- data/docs/classicModel.html +92 -0
- data/docs/codeFuncs.js +77 -0
- data/docs/collectionAssert.html +162 -0
- data/docs/collectionConstraints.html +130 -0
- data/docs/comparisonAsserts.html +271 -0
- data/docs/comparisonConstraints.html +109 -0
- data/docs/compoundConstraints.html +97 -0
- data/docs/conditionAsserts.html +123 -0
- data/docs/conditionConstraints.html +106 -0
- data/docs/configEditor.html +93 -0
- data/docs/configFiles.html +155 -0
- data/docs/consoleCommandLine.html +271 -0
- data/docs/constraintModel.html +134 -0
- data/docs/contextMenu.html +106 -0
- data/docs/culture.html +255 -0
- data/docs/customAsserts.html +115 -0
- data/docs/customConstraints.html +101 -0
- data/docs/description.html +178 -0
- data/docs/equalConstraint.html +139 -0
- data/docs/equalityAsserts.html +187 -0
- data/docs/exception.html +296 -0
- data/docs/explicit.html +256 -0
- data/docs/extensibility.html +83 -0
- data/docs/favicon.ico +0 -0
- data/docs/features.html +75 -0
- data/docs/fileAssert.html +114 -0
- data/docs/files/QuickStart.Spanish.doc +0 -0
- data/docs/files/QuickStart.doc +0 -0
- data/docs/files/Results.xsd +70 -0
- data/docs/files/Summary.xslt +47 -0
- data/docs/files/TestResult.xml +103 -0
- data/docs/files/Thumbs.db +0 -0
- data/docs/fixtureSetup.html +201 -0
- data/docs/fixtureTeardown.html +204 -0
- data/docs/getStarted.html +80 -0
- data/docs/guiCommandLine.html +183 -0
- data/docs/identityAsserts.html +99 -0
- data/docs/ignore.html +249 -0
- data/docs/img/addinsDialog.JPG +0 -0
- data/docs/img/assembliesTab.jpg +0 -0
- data/docs/img/assemblyReloadOptions.JPG +0 -0
- data/docs/img/bulletOff.gif +0 -0
- data/docs/img/bulletOn.gif +0 -0
- data/docs/img/configEditor.jpg +0 -0
- data/docs/img/console-mock.jpg +0 -0
- data/docs/img/displayTab.jpg +0 -0
- data/docs/img/generalOptions.jpg +0 -0
- data/docs/img/generalTab.jpg +0 -0
- data/docs/img/gui-screenshot.jpg +0 -0
- data/docs/img/gui-verify.jpg +0 -0
- data/docs/img/langFilter.gif +0 -0
- data/docs/img/logo.gif +0 -0
- data/docs/img/miniGui.jpg +0 -0
- data/docs/img/optionsDialog.jpg +0 -0
- data/docs/img/resultTab.jpg +0 -0
- data/docs/img/testLoadOptions.jpg +0 -0
- data/docs/img/testOutputOptions.jpg +0 -0
- data/docs/img/testProperties.jpg +0 -0
- data/docs/img/testResultOptions.JPG +0 -0
- data/docs/img/testTab.jpg +0 -0
- data/docs/img/testsTab.JPG +0 -0
- data/docs/img/textOutputOptions.jpg +0 -0
- data/docs/img/treeDisplayOptions.JPG +0 -0
- data/docs/img/visualStudioOptions.JPG +0 -0
- data/docs/index.html +75 -0
- data/docs/installation.html +172 -0
- data/docs/license.html +88 -0
- data/docs/listMapper.html +100 -0
- data/docs/mainMenu.html +260 -0
- data/docs/multiAssembly.html +130 -0
- data/docs/nunit-console.html +84 -0
- data/docs/nunit-gui.html +115 -0
- data/docs/nunit.css +118 -0
- data/docs/nunitAddins.html +331 -0
- data/docs/optionsDialog.html +262 -0
- data/docs/platform.html +285 -0
- data/docs/platformSupport.html +99 -0
- data/docs/projectEditor.html +127 -0
- data/docs/property.html +219 -0
- data/docs/propertyConstraint.html +89 -0
- data/docs/quickStart.html +314 -0
- data/docs/releaseNotes.html +1235 -0
- data/docs/sameasConstraint.html +98 -0
- data/docs/samples.html +126 -0
- data/docs/setCulture.html +173 -0
- data/docs/setup.html +199 -0
- data/docs/setupFixture.html +198 -0
- data/docs/stringAssert.html +107 -0
- data/docs/stringConstraints.html +111 -0
- data/docs/suite.html +222 -0
- data/docs/teardown.html +204 -0
- data/docs/test.html +171 -0
- data/docs/testFixture.html +168 -0
- data/docs/testProperties.html +76 -0
- data/docs/typeAsserts.html +101 -0
- data/docs/typeConstraints.html +103 -0
- data/docs/upgrade.html +97 -0
- data/docs/utilityAsserts.html +108 -0
- data/docs/vsSupport.html +140 -0
- data/lib/net-1.1/Failure.jpg +0 -0
- data/lib/net-1.1/Ignored.jpg +0 -0
- data/lib/net-1.1/NUnitFitTests.html +277 -0
- data/lib/net-1.1/NUnitTests.config +84 -0
- data/lib/net-1.1/NUnitTests.nunit +14 -0
- data/lib/net-1.1/Success.jpg +0 -0
- data/lib/net-1.1/clr.bat +96 -0
- data/lib/net-1.1/fit.dll +0 -0
- data/lib/net-1.1/loadtest-assembly.dll +0 -0
- data/lib/net-1.1/mock-assembly.dll +0 -0
- data/lib/net-1.1/nonamespace-assembly.dll +0 -0
- data/lib/net-1.1/notestfixtures-assembly.dll +0 -0
- data/lib/net-1.1/nunit-console-runner.dll +0 -0
- data/lib/net-1.1/nunit-console.exe +0 -0
- data/lib/net-1.1/nunit-console.exe.config +117 -0
- data/lib/net-1.1/nunit-console.tests.dll +0 -0
- data/lib/net-1.1/nunit-gui-runner.dll +0 -0
- data/lib/net-1.1/nunit-gui.tests.dll +0 -0
- data/lib/net-1.1/nunit.core.dll +0 -0
- data/lib/net-1.1/nunit.core.extensions.dll +0 -0
- data/lib/net-1.1/nunit.core.interfaces.dll +0 -0
- data/lib/net-1.1/nunit.core.tests.dll +0 -0
- data/lib/net-1.1/nunit.exe +0 -0
- data/lib/net-1.1/nunit.exe.config +121 -0
- data/lib/net-1.1/nunit.extensions.tests.dll +0 -0
- data/lib/net-1.1/nunit.fixtures.dll +0 -0
- data/lib/net-1.1/nunit.fixtures.tests.dll +0 -0
- data/lib/net-1.1/nunit.framework.dll +0 -0
- data/lib/net-1.1/nunit.framework.extensions.dll +0 -0
- data/lib/net-1.1/nunit.framework.tests.dll +0 -0
- data/lib/net-1.1/nunit.framework.xml +5622 -0
- data/lib/net-1.1/nunit.mocks.dll +0 -0
- data/lib/net-1.1/nunit.mocks.tests.dll +0 -0
- data/lib/net-1.1/nunit.uikit.dll +0 -0
- data/lib/net-1.1/nunit.uikit.tests.dll +0 -0
- data/lib/net-1.1/nunit.util.dll +0 -0
- data/lib/net-1.1/nunit.util.tests.dll +0 -0
- data/lib/net-1.1/runFile.exe +0 -0
- data/lib/net-1.1/runFile.exe.config +43 -0
- data/lib/net-1.1/test-assembly.dll +0 -0
- data/lib/net-1.1/test-utilities.dll +0 -0
- data/lib/net-1.1/timing-tests.dll +0 -0
- data/lib/net-2.0/Failure.jpg +0 -0
- data/lib/net-2.0/Ignored.jpg +0 -0
- data/lib/net-2.0/NUnitFitTests.html +277 -0
- data/lib/net-2.0/NUnitTests.config +84 -0
- data/lib/net-2.0/NUnitTests.nunit +14 -0
- data/lib/net-2.0/Success.jpg +0 -0
- data/lib/net-2.0/clr.bat +96 -0
- data/lib/net-2.0/fit.dll +0 -0
- data/lib/net-2.0/loadtest-assembly.dll +0 -0
- data/lib/net-2.0/mock-assembly.dll +0 -0
- data/lib/net-2.0/nonamespace-assembly.dll +0 -0
- data/lib/net-2.0/notestfixtures-assembly.dll +0 -0
- data/lib/net-2.0/nunit-console-runner.dll +0 -0
- data/lib/net-2.0/nunit-console-x86.exe +0 -0
- data/lib/net-2.0/nunit-console-x86.exe.config +117 -0
- data/lib/net-2.0/nunit-console.exe +0 -0
- data/lib/net-2.0/nunit-console.exe.config +117 -0
- data/lib/net-2.0/nunit-console.tests.dll +0 -0
- data/lib/net-2.0/nunit-gui-runner.dll +0 -0
- data/lib/net-2.0/nunit-gui.tests.dll +0 -0
- data/lib/net-2.0/nunit-x86.exe +0 -0
- data/lib/net-2.0/nunit-x86.exe.config +121 -0
- data/lib/net-2.0/nunit.core.dll +0 -0
- data/lib/net-2.0/nunit.core.extensions.dll +0 -0
- data/lib/net-2.0/nunit.core.interfaces.dll +0 -0
- data/lib/net-2.0/nunit.core.tests.dll +0 -0
- data/lib/net-2.0/nunit.exe +0 -0
- data/lib/net-2.0/nunit.exe.config +121 -0
- data/lib/net-2.0/nunit.extensions.tests.dll +0 -0
- data/lib/net-2.0/nunit.fixtures.dll +0 -0
- data/lib/net-2.0/nunit.fixtures.tests.dll +0 -0
- data/lib/net-2.0/nunit.framework.dll +0 -0
- data/lib/net-2.0/nunit.framework.extensions.dll +0 -0
- data/lib/net-2.0/nunit.framework.tests.dll +0 -0
- data/lib/net-2.0/nunit.framework.xml +5622 -0
- data/lib/net-2.0/nunit.mocks.dll +0 -0
- data/lib/net-2.0/nunit.mocks.tests.dll +0 -0
- data/lib/net-2.0/nunit.uikit.dll +0 -0
- data/lib/net-2.0/nunit.uikit.tests.dll +0 -0
- data/lib/net-2.0/nunit.util.dll +0 -0
- data/lib/net-2.0/nunit.util.tests.dll +0 -0
- data/lib/net-2.0/runFile.exe +0 -0
- data/lib/net-2.0/runFile.exe.config +43 -0
- data/lib/net-2.0/test-assembly.dll +0 -0
- data/lib/net-2.0/test-utilities.dll +0 -0
- data/lib/net-2.0/timing-tests.dll +0 -0
- metadata +262 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - TestProperties</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Test Properties Dialog</h2>
|
28
|
+
|
29
|
+
<p>The test properties dialog is displayed using either the View | Properties menu item on the main
|
30
|
+
menu or the Properties item on the context menu. It shows information about the test and � if it
|
31
|
+
has been run � about the results. The dialog contains a �pin� button in the upper right corner,
|
32
|
+
which causes it to remain open as the user clicks on different tests.</p>
|
33
|
+
|
34
|
+
<div class="screenshot-left">
|
35
|
+
<img src="img/testProperties.jpg"></div>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<!-- Submenu -->
|
40
|
+
<div id="subnav">
|
41
|
+
<ul>
|
42
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
43
|
+
<ul>
|
44
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
45
|
+
<li><a href="assertions.html">Assertions</a></li>
|
46
|
+
<li><a href="attributes.html">Attributes</a></li>
|
47
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
48
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
49
|
+
<ul>
|
50
|
+
<li><a href="guiCommandLine.html">Command-Line</a></li>
|
51
|
+
<li><a href="mainMenu.html">Main Menu</a></li>
|
52
|
+
<li><a href="contextMenu.html">Context Menu</a></li>
|
53
|
+
<li><a href="optionsDialog.html">Options Dialog</a></li>
|
54
|
+
<li><a href="addinsDialog.html">Addins Dialog</a></li>
|
55
|
+
<li id="current"><a href="testProperties.html">Test Properties</a></li>
|
56
|
+
<li><a href="configEditor.html">Configuration Editor</a></li>
|
57
|
+
<li><a href="projectEditor.html">Project Editor</a></li>
|
58
|
+
</ul>
|
59
|
+
<li><a href="features.html">Other Features</a></li>
|
60
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
61
|
+
<li><a href="samples.html">Samples</a></li>
|
62
|
+
<li><a href="license.html">License</a></li>
|
63
|
+
</ul>
|
64
|
+
</ul>
|
65
|
+
</div>
|
66
|
+
<!-- End of Submenu -->
|
67
|
+
|
68
|
+
|
69
|
+
<!-- Standard Footer for NUnit.org -->
|
70
|
+
<div id="footer">
|
71
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
72
|
+
</div>
|
73
|
+
<!-- End of Footer -->
|
74
|
+
|
75
|
+
</body>
|
76
|
+
</html>
|
@@ -0,0 +1,101 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - TypeAsserts</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Type Asserts (NUnit 2.2.3)</h2>
|
28
|
+
|
29
|
+
<p>These methods allow us to make assertions about the type of an object.</p>
|
30
|
+
|
31
|
+
<div class="code" style="width: 36em" >
|
32
|
+
<pre>Assert.IsInstanceOfType( Type expected, object actual );
|
33
|
+
Assert.IsInstanceOfType( Type expected, object actual,
|
34
|
+
string message );
|
35
|
+
Assert.IsInstanceOfType( Type expected, object actual,
|
36
|
+
string message, params object[] parms );
|
37
|
+
|
38
|
+
Assert.IsNotInstanceOfType( Type expected, object actual );
|
39
|
+
Assert.IsNotInstanceOfType( Type expected, object actual,
|
40
|
+
string message );
|
41
|
+
Assert.IsNotInstanceOfType( Type expected, object actual,
|
42
|
+
string message, params object[] parms );
|
43
|
+
|
44
|
+
Assert.IsAssignableFrom( Type expected, object actual );
|
45
|
+
Assert.IsAssignableFrom( Type expected, object actual,
|
46
|
+
string message );
|
47
|
+
Assert.IsAssignableFrom( Type expected, object actual,
|
48
|
+
string message, params object[] parms );
|
49
|
+
|
50
|
+
Assert.IsNotAssignableFrom( Type expected, object actual );
|
51
|
+
Assert.IsNotAssignableFrom( Type expected, object actual,
|
52
|
+
string message );
|
53
|
+
Assert.IsNotAssignableFrom( Type expected, object actual,
|
54
|
+
string message, params object[] parms );</pre>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<!-- Submenu -->
|
60
|
+
<div id="subnav">
|
61
|
+
<ul>
|
62
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
63
|
+
<ul>
|
64
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
65
|
+
<li><a href="assertions.html">Assertions</a></li>
|
66
|
+
<ul>
|
67
|
+
<li><a href="classicModel.html">Classic Model</a></li>
|
68
|
+
<ul>
|
69
|
+
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
70
|
+
<li><a href="identityAsserts.html">Identity Asserts</a></li>
|
71
|
+
<li><a href="conditionAsserts.html">Condition Tests</a></li>
|
72
|
+
<li><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
73
|
+
<li id="current"><a href="typeAsserts.html">Type Asserts</a></li>
|
74
|
+
<li><a href="utilityAsserts.html">Utility Methods</a></li>
|
75
|
+
<li><a href="stringAssert.html">String Assert</a></li>
|
76
|
+
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
77
|
+
<li><a href="fileAssert.html">File Assert</a></li>
|
78
|
+
</ul>
|
79
|
+
<li><a href="constraintModel.html">Constraint Model</a></li>
|
80
|
+
</ul>
|
81
|
+
<li><a href="attributes.html">Attributes</a></li>
|
82
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
83
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
84
|
+
<li><a href="features.html">Other Features</a></li>
|
85
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
86
|
+
<li><a href="samples.html">Samples</a></li>
|
87
|
+
<li><a href="license.html">License</a></li>
|
88
|
+
</ul>
|
89
|
+
</ul>
|
90
|
+
</div>
|
91
|
+
<!-- End of Submenu -->
|
92
|
+
|
93
|
+
|
94
|
+
<!-- Standard Footer for NUnit.org -->
|
95
|
+
<div id="footer">
|
96
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
97
|
+
</div>
|
98
|
+
<!-- End of Footer -->
|
99
|
+
|
100
|
+
</body>
|
101
|
+
</html>
|
@@ -0,0 +1,103 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - TypeConstraints</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Type Constraints (NUnit 2.4)</h2>
|
28
|
+
|
29
|
+
<p>Type constraints perform tests that are specific to Types.
|
30
|
+
The following type constraints are provided:
|
31
|
+
|
32
|
+
<table class="constraints">
|
33
|
+
<tr><th>Syntax Helper</th><th>Constructor</th><th>Operation</th></tr>
|
34
|
+
<tr><td>Is.TypeOf( Type )</td><td>ExactTypeConstraint( Type )</td></td><td>tests that an object is an exact Type</td></tr>
|
35
|
+
<tr><td>Is.InstanceOfType( Type )</td><td>InstanceOfTypeConstraint( Type )</td></td><td>tests that an object is an instance of a Type</td></tr>
|
36
|
+
<tr><td>Is.AssignableFrom( Type )</td><td>AssignableFromConstraint( Type )</td></td><td>tests that one type is assignable from another</td></tr>
|
37
|
+
</table>
|
38
|
+
|
39
|
+
<h4>Examples of Use</h4>
|
40
|
+
|
41
|
+
<div class="code"><pre>
|
42
|
+
Assert.That("Hello", Is.TypeOf(typeof(string)));
|
43
|
+
Assert.That("Hello", Is.Not.TypeOf(typeof(int)));
|
44
|
+
|
45
|
+
Assert.That("Hello", Is.InstanceOfType(typeof(string)));
|
46
|
+
Assert.That(5, Is.Not.InstanceOfType(typeof(string)));
|
47
|
+
|
48
|
+
Assert.That( "Hello", Is.AssignableFrom(typeof(string)));
|
49
|
+
Assert.That( 5, Is.Not.AssignableFrom(typeof(string)));
|
50
|
+
|
51
|
+
// Using inheritance
|
52
|
+
Expect( 5, Not.InstanceOfType(typeof(string)));
|
53
|
+
Expect( "Hello", AssignableFrom(typeOf(string)));
|
54
|
+
</pre></div>
|
55
|
+
|
56
|
+
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<!-- Submenu -->
|
60
|
+
<div id="subnav">
|
61
|
+
<ul>
|
62
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
63
|
+
<ul>
|
64
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
65
|
+
<li><a href="assertions.html">Assertions</a></li>
|
66
|
+
<ul>
|
67
|
+
<li><a href="classicModel.html">Classic Model</a></li>
|
68
|
+
<li><a href="constraintModel.html">Constraint Model</a></li>
|
69
|
+
<ul>
|
70
|
+
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
71
|
+
<li><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
72
|
+
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
73
|
+
<li><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
74
|
+
<li id="current"><a href="typeConstraints.html">Type Constraints</a></li>
|
75
|
+
<li><a href="stringConstraints.html">String Constraints</a></li>
|
76
|
+
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
77
|
+
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
78
|
+
<li><a href="compoundConstraints.html">Compound Constraints</a></li>
|
79
|
+
<li><a href="customConstraints.html">Custom Constraints</a></li>
|
80
|
+
<li><a href="listMapper.html">List Mapper</a></li>
|
81
|
+
</ul>
|
82
|
+
</ul>
|
83
|
+
<li><a href="attributes.html">Attributes</a></li>
|
84
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
85
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
86
|
+
<li><a href="features.html">Other Features</a></li>
|
87
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
88
|
+
<li><a href="samples.html">Samples</a></li>
|
89
|
+
<li><a href="license.html">License</a></li>
|
90
|
+
</ul>
|
91
|
+
</ul>
|
92
|
+
</div>
|
93
|
+
<!-- End of Submenu -->
|
94
|
+
|
95
|
+
|
96
|
+
<!-- Standard Footer for NUnit.org -->
|
97
|
+
<div id="footer">
|
98
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
99
|
+
</div>
|
100
|
+
<!-- End of Footer -->
|
101
|
+
|
102
|
+
</body>
|
103
|
+
</html>
|
data/docs/upgrade.html
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - Upgrade</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>From NUnit 2.x</h2>
|
28
|
+
|
29
|
+
<p>Beginning with version 2.2.1, old style test cases ("Test....") are no longer
|
30
|
+
recognized by default. We recommend that you convert such test cases to use the
|
31
|
+
<a href="test.html">TestAttribute</a>. Alternatively, you may
|
32
|
+
specify a setting in the test config file to allow use of old style test cases by
|
33
|
+
default.</p>
|
34
|
+
|
35
|
+
<p>Beginning with NUnit 2.2.2, NUnit is able to run tests Built with older
|
36
|
+
versions of NUnit 2.x without recompilation.</p>
|
37
|
+
|
38
|
+
<h2>From NUnit 1.x</h2>
|
39
|
+
|
40
|
+
<p>Upgrading requires a minimal amount of work. Since the framework still looks for
|
41
|
+
test methods by name in addition to the attributes, <b>no test method will need to
|
42
|
+
be modified to upgrade to the new version</b>. The only source code change
|
43
|
+
required is to remove the constructor with the string parameter in the class
|
44
|
+
that inherits from TestCase. The only new requirement is that you have a
|
45
|
+
default constructor. If there was significant processing in the existing
|
46
|
+
constructor then just move it to the default constructor. The only other change
|
47
|
+
is to change the reference to nunit.framework.dll instead of the V1.x framework
|
48
|
+
dll. Using the TestCase class has been marked obsolete so you will get
|
49
|
+
warnings, but they can be ignored for now!
|
50
|
+
</p>
|
51
|
+
<h3>Suite property</h3>
|
52
|
+
<p>The existing Suite property will not be found by the new program. These must be
|
53
|
+
changed to the "Suite" attribute for the test runners to find them.
|
54
|
+
Another alternative is that these suites are no longer needed due to the
|
55
|
+
automatic capability that is built in to the new version.</p>
|
56
|
+
<h3>AssertionFailedError</h3>
|
57
|
+
<p>If you have written code expecting the exception AssertionFailedError, this must
|
58
|
+
be changed to AssertionException.</p>
|
59
|
+
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<!-- Submenu -->
|
64
|
+
<div id="subnav">
|
65
|
+
<ul>
|
66
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
67
|
+
<ul>
|
68
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
69
|
+
<ul>
|
70
|
+
<li><a href="quickStart.html">Quick Start</a></li>
|
71
|
+
<li><a href="installation.html">Installation</a></li>
|
72
|
+
<ul>
|
73
|
+
<li id="current"><a href="upgrade.html">Upgrading</a></li>
|
74
|
+
</ul>
|
75
|
+
</ul>
|
76
|
+
<li><a href="assertions.html">Assertions</a></li>
|
77
|
+
<li><a href="attributes.html">Attributes</a></li>
|
78
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
79
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
80
|
+
<li><a href="features.html">Other Features</a></li>
|
81
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
82
|
+
<li><a href="samples.html">Samples</a></li>
|
83
|
+
<li><a href="license.html">License</a></li>
|
84
|
+
</ul>
|
85
|
+
</ul>
|
86
|
+
</div>
|
87
|
+
<!-- End of Submenu -->
|
88
|
+
|
89
|
+
|
90
|
+
<!-- Standard Footer for NUnit.org -->
|
91
|
+
<div id="footer">
|
92
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
93
|
+
</div>
|
94
|
+
<!-- End of Footer -->
|
95
|
+
|
96
|
+
</body>
|
97
|
+
</html>
|
@@ -0,0 +1,108 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - UtilityAsserts</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Utility Methods</h2>
|
28
|
+
<p>Two utility methods, Fail() and Ignore() are provided in order to allow more
|
29
|
+
direct control of the test process:</p>
|
30
|
+
<div class="code" style="width: 36em">
|
31
|
+
<pre>Assert.Fail();
|
32
|
+
Assert.Fail( string message );
|
33
|
+
Assert.Fail( string message, object[] parms );
|
34
|
+
|
35
|
+
Assert.Ignore();
|
36
|
+
Assert.Ignore( string message );
|
37
|
+
Assert.Ignore( string message, object[] parms );</pre>
|
38
|
+
</div>
|
39
|
+
<p>The Assert.Fail method provides you with the ability to generate a failure based
|
40
|
+
on tests that are not encapsulated by the other methods. It is also useful in
|
41
|
+
developing your own project-specific assertions.</p>
|
42
|
+
<p>Here's an example of its use to create a private assertion that tests whether a
|
43
|
+
string contains an expected value.</p>
|
44
|
+
<div class="code" style="width: 36em">
|
45
|
+
<pre>public void AssertStringContains( string expected, string actual )
|
46
|
+
{
|
47
|
+
AssertStringContains( expected, actual, string.Empty );
|
48
|
+
}
|
49
|
+
|
50
|
+
public void AssertStringContains( string expected, string actual,
|
51
|
+
string message )
|
52
|
+
{
|
53
|
+
if ( actual.IndexOf( expected ) < 0 )
|
54
|
+
Assert.Fail( message );
|
55
|
+
}</pre>
|
56
|
+
</div>
|
57
|
+
<p>The Assert.Ignore method provides you with the ability to dynamically cause a
|
58
|
+
test or suite to be ignored at runtime. It may be called in a test, setup or
|
59
|
+
fixture setup method. We recommend that you use this only in isolated cases.
|
60
|
+
The category facility is provided for more extensive inclusion or exclusion of
|
61
|
+
tests or you may elect to simply divide tests run on different occasions into
|
62
|
+
different assemblies.</p>
|
63
|
+
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<!-- Submenu -->
|
67
|
+
<div id="subnav">
|
68
|
+
<ul>
|
69
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
70
|
+
<ul>
|
71
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
72
|
+
<li><a href="assertions.html">Assertions</a></li>
|
73
|
+
<ul>
|
74
|
+
<li><a href="classicModel.html">Classic Model</a></li>
|
75
|
+
<ul>
|
76
|
+
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
77
|
+
<li><a href="identityAsserts.html">Identity Asserts</a></li>
|
78
|
+
<li><a href="conditionAsserts.html">Condition Tests</a></li>
|
79
|
+
<li><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
80
|
+
<li><a href="typeAsserts.html">Type Asserts</a></li>
|
81
|
+
<li id="current"><a href="utilityAsserts.html">Utility Methods</a></li>
|
82
|
+
<li><a href="stringAssert.html">String Assert</a></li>
|
83
|
+
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
84
|
+
<li><a href="fileAssert.html">File Assert</a></li>
|
85
|
+
</ul>
|
86
|
+
<li><a href="constraintModel.html">Constraint Model</a></li>
|
87
|
+
</ul>
|
88
|
+
<li><a href="attributes.html">Attributes</a></li>
|
89
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
90
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
91
|
+
<li><a href="features.html">Other Features</a></li>
|
92
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
93
|
+
<li><a href="samples.html">Samples</a></li>
|
94
|
+
<li><a href="license.html">License</a></li>
|
95
|
+
</ul>
|
96
|
+
</ul>
|
97
|
+
</div>
|
98
|
+
<!-- End of Submenu -->
|
99
|
+
|
100
|
+
|
101
|
+
<!-- Standard Footer for NUnit.org -->
|
102
|
+
<div id="footer">
|
103
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
104
|
+
</div>
|
105
|
+
<!-- End of Footer -->
|
106
|
+
|
107
|
+
</body>
|
108
|
+
</html>
|