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,183 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - GuiCommandLine</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>NUnit Command Line Options</h2>
|
28
|
+
<p>The forms interface may be run with or without the name of a file containing
|
29
|
+
tests on the command line. If the program is started without any file
|
30
|
+
specified, it automatically loads the most recently loaded assembly.</p>
|
31
|
+
<p><b>Note:</b> Options that take values may use an equal sign, a colon or a space
|
32
|
+
to separate the option from its value.</p>
|
33
|
+
<p><b>Note:</b> Under the Windows operating system, options may be prefixed by either
|
34
|
+
a forward slash or a hyphen. Under Linux, a hyphen must be used. Options that
|
35
|
+
take values may use an equal sign, a colon or a space to separate the option
|
36
|
+
from its value.</p>
|
37
|
+
<h4>Run without loading an Assembly</h4>
|
38
|
+
<p>To suppress loading of the most recent assembly, use the <b>/noload</b> switch:
|
39
|
+
<pre class="programtext"> nunit /noload</pre>
|
40
|
+
</p>
|
41
|
+
<h4>Specifying an Assembly</h4>
|
42
|
+
<p>The other option is to specify an assembly or project file name on the command
|
43
|
+
line. The following will start the forms interface with the assembly
|
44
|
+
nunit.tests.dll:
|
45
|
+
<pre class="programtext"> nunit nunit.tests.dll</pre>
|
46
|
+
</p>
|
47
|
+
<p>The following will start the forms interface loading the same assembly through
|
48
|
+
its Visual Studio project definition:
|
49
|
+
<pre class="programtext"> nunit nunit.tests.csproj</pre>
|
50
|
+
</p>
|
51
|
+
<p>Assuming an NUnit test project has been created containing the assembly, the
|
52
|
+
following will again load nunit.tests.dll:
|
53
|
+
<pre class="programtext"> nunit nunit.tests.nunit</pre>
|
54
|
+
</p>
|
55
|
+
<h4>Specifying an Assembly and a Fixture</h4>
|
56
|
+
<p>
|
57
|
+
When specifying a a fixture, you must give the full name of the test fixture
|
58
|
+
along with the containing assembly. For example, to load only the
|
59
|
+
NUnit.Tests.AssertionTests in the nunit.tests.dll assembly use the following
|
60
|
+
command:
|
61
|
+
<pre class="programtext"> nunit /fixture:NUnit.Tests.AssertionTests nunit.tests.dll</pre>
|
62
|
+
</p>
|
63
|
+
<p>The name specified after the <b>/fixture</b> option may be that of a TestFixture
|
64
|
+
class, or a namespace. If a namespace is given, then all fixtures under that
|
65
|
+
namespace are loaded. This option may be used with Visual Studio or NUnit
|
66
|
+
projects as well.</p>
|
67
|
+
|
68
|
+
<h4>Specifying Test Categories to Include or Exclude</h4>
|
69
|
+
<p>NUnit provides CategoryAttribute for use in marking tests as belonging to
|
70
|
+
one or more categories. Categories may be included or excluded in a test run
|
71
|
+
using the <b>/include</b> or <b>/exclude</b> options. The following command
|
72
|
+
starts the gui with only the tests in the BaseLine category selected:
|
73
|
+
<pre class="programtext"> nunit myassembly.dll /include:BaseLine</pre>
|
74
|
+
</p>
|
75
|
+
<p>The following command selects all tests <b>except</b> those in the Database
|
76
|
+
category:
|
77
|
+
<pre class="programtext"> nunit myassembly.dll /exclude:Database</pre>
|
78
|
+
</p>
|
79
|
+
<p>
|
80
|
+
Multiple categories may be specified on either option, by using commas to
|
81
|
+
separate them.
|
82
|
+
<p><b>Note:</b> At this time, the /include and /exclude options may not be
|
83
|
+
combined on the command line.</p>
|
84
|
+
<!--
|
85
|
+
<h4>Specifying the Version of the CLR</h4>
|
86
|
+
|
87
|
+
<p>Most applications are written to run under a specific version of the CLR.
|
88
|
+
A few are designed to operate correctly under multiple versions. In either case,
|
89
|
+
it is important to be able to specify the CLR version to be used for testing.</p>
|
90
|
+
|
91
|
+
<p>When only one version of the CLR is used, the config files for nunit and
|
92
|
+
nunit-console may be set up to specify that version. As a more convenient
|
93
|
+
alternative when switching CLRs, you may use the provided <b>clr.bat</b>
|
94
|
+
command to specify the version under which NUnit should run.</p>
|
95
|
+
|
96
|
+
<p>For example, to run the gui under the RTM version of
|
97
|
+
the .Net 2.0 framework, use:</p>
|
98
|
+
|
99
|
+
<pre class="programtext"> clr net-2.0 nunit</pre>
|
100
|
+
|
101
|
+
<p>The <b>clr.bat</b> file is located in the NUnit <b>bin</b> directory. You may
|
102
|
+
put this on your path, or copy it to a convenient location. Enter <b>clr /?</b>
|
103
|
+
for a list of options.</p>
|
104
|
+
|
105
|
+
<p><b>Note:</b> If you use a <startup> section in the config file, it takes
|
106
|
+
precedence over this option.</p>
|
107
|
+
|
108
|
+
<p><b>Note:</b> This command is specific to the Microsoft .Net
|
109
|
+
framework. The Mono framework provides other means to specify the version
|
110
|
+
to be used when running a command and the NUnit Windows interface does
|
111
|
+
not currently run under Mono.</p>
|
112
|
+
-->
|
113
|
+
|
114
|
+
<h4>Load and Run All Tests</h4>
|
115
|
+
Normally, nunit only loads an assembly and then waits for the user to click
|
116
|
+
on the Run button. If you wish to have the tests run immediately, use the <b>/run</b>
|
117
|
+
option:
|
118
|
+
<pre class="programtext"> nunit nunit.tests.dll /run</pre>
|
119
|
+
</p>
|
120
|
+
<h4>Load and Run Selected Tests</h4>
|
121
|
+
To load and immediately rerun the last selected tests, use the <b>/runselected</b>
|
122
|
+
option:
|
123
|
+
<pre class="programtext"> nunit nunit.tests.dll /runselected</pre>
|
124
|
+
</p>
|
125
|
+
<p><b>Note:</b> If no selection has been saved, this option works just like <b>/run</b>.
|
126
|
+
<h4>Specifying which Configuration to Load</h4>
|
127
|
+
<p>When loading a Visual Studio project or an NUnit project, the first
|
128
|
+
configuration found will be loaded by default. Usually this is Debug. The
|
129
|
+
configuration loaded may be controlled using the <b>/config</b> switch. The
|
130
|
+
following will load the Release configuration of the nunit.tests.dll:
|
131
|
+
<pre class="programtext"> nunit nunit.tests.csproj /config:Release</pre>
|
132
|
+
</p>
|
133
|
+
<p><b>Note:</b> This option has no effect when loading an assembly directly.</p>
|
134
|
+
<h4>Specifying Multiple Assemblies</h4>
|
135
|
+
<p>The forms interface does <b>not</b> currently provide for specifying more than
|
136
|
+
one assembly on the command line. Multiple-assembly projects must be loaded by
|
137
|
+
specifying the name of a Visual Studio solution file or an NUnit test project.</p>
|
138
|
+
<h4>Clearing the ShadowCopy Cache</h4>
|
139
|
+
<p>The <b>/cleanup</b> option erases the shadow copy cache and exits.
|
140
|
+
<h4>Displaying Help</h4>
|
141
|
+
<p>The <b>/help</b> or <b>/?</b> option displays a message box containing a brief
|
142
|
+
help message.</p>
|
143
|
+
|
144
|
+
</div>
|
145
|
+
|
146
|
+
<!-- Submenu -->
|
147
|
+
<div id="subnav">
|
148
|
+
<ul>
|
149
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
150
|
+
<ul>
|
151
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
152
|
+
<li><a href="assertions.html">Assertions</a></li>
|
153
|
+
<li><a href="attributes.html">Attributes</a></li>
|
154
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
155
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
156
|
+
<ul>
|
157
|
+
<li id="current"><a href="guiCommandLine.html">Command-Line</a></li>
|
158
|
+
<li><a href="mainMenu.html">Main Menu</a></li>
|
159
|
+
<li><a href="contextMenu.html">Context Menu</a></li>
|
160
|
+
<li><a href="optionsDialog.html">Options Dialog</a></li>
|
161
|
+
<li><a href="addinsDialog.html">Addins Dialog</a></li>
|
162
|
+
<li><a href="testProperties.html">Test Properties</a></li>
|
163
|
+
<li><a href="configEditor.html">Configuration Editor</a></li>
|
164
|
+
<li><a href="projectEditor.html">Project Editor</a></li>
|
165
|
+
</ul>
|
166
|
+
<li><a href="features.html">Other Features</a></li>
|
167
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
168
|
+
<li><a href="samples.html">Samples</a></li>
|
169
|
+
<li><a href="license.html">License</a></li>
|
170
|
+
</ul>
|
171
|
+
</ul>
|
172
|
+
</div>
|
173
|
+
<!-- End of Submenu -->
|
174
|
+
|
175
|
+
|
176
|
+
<!-- Standard Footer for NUnit.org -->
|
177
|
+
<div id="footer">
|
178
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
179
|
+
</div>
|
180
|
+
<!-- End of Footer -->
|
181
|
+
|
182
|
+
</body>
|
183
|
+
</html>
|
@@ -0,0 +1,99 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - IdentityAsserts</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>Identity Asserts</h2>
|
28
|
+
|
29
|
+
<p><b>Assert.AreSame</b> and <b>Assert.AreNotSame</b> test whether the same objects are
|
30
|
+
referenced by the two arguments.</p>
|
31
|
+
|
32
|
+
<div class="code" style="width: 36em" >
|
33
|
+
<pre>Assert.AreSame( object expected, object actual );
|
34
|
+
Assert.AreSame( object expected, object actual, string message );
|
35
|
+
Assert.AreSame( object expected, object actual, string message,
|
36
|
+
params object[] parms );
|
37
|
+
|
38
|
+
Assert.AreNotSame( object expected, object actual );
|
39
|
+
Assert.AreNotSame( object expected, object actual, string message );
|
40
|
+
Assert.AreNotSame( object expected, object actual, string message,
|
41
|
+
params object[] parms );</pre>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
<p><b>Assert.Contains</b> is used to test whether an object is contained in an array
|
45
|
+
or list.</p>
|
46
|
+
|
47
|
+
<div class="code" width="36em">
|
48
|
+
<pre>Assert.Contains( object anObject, IList collection );
|
49
|
+
Assert.Contains( object anObject, IList collection,
|
50
|
+
string message );
|
51
|
+
Assert.Contains( object anObject, IList collection,
|
52
|
+
string message, params object[] parms );</pre>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<!-- Submenu -->
|
58
|
+
<div id="subnav">
|
59
|
+
<ul>
|
60
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
61
|
+
<ul>
|
62
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
63
|
+
<li><a href="assertions.html">Assertions</a></li>
|
64
|
+
<ul>
|
65
|
+
<li><a href="classicModel.html">Classic Model</a></li>
|
66
|
+
<ul>
|
67
|
+
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
68
|
+
<li id="current"><a href="identityAsserts.html">Identity Asserts</a></li>
|
69
|
+
<li><a href="conditionAsserts.html">Condition Tests</a></li>
|
70
|
+
<li><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
71
|
+
<li><a href="typeAsserts.html">Type Asserts</a></li>
|
72
|
+
<li><a href="utilityAsserts.html">Utility Methods</a></li>
|
73
|
+
<li><a href="stringAssert.html">String Assert</a></li>
|
74
|
+
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
75
|
+
<li><a href="fileAssert.html">File Assert</a></li>
|
76
|
+
</ul>
|
77
|
+
<li><a href="constraintModel.html">Constraint Model</a></li>
|
78
|
+
</ul>
|
79
|
+
<li><a href="attributes.html">Attributes</a></li>
|
80
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
81
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
82
|
+
<li><a href="features.html">Other Features</a></li>
|
83
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
84
|
+
<li><a href="samples.html">Samples</a></li>
|
85
|
+
<li><a href="license.html">License</a></li>
|
86
|
+
</ul>
|
87
|
+
</ul>
|
88
|
+
</div>
|
89
|
+
<!-- End of Submenu -->
|
90
|
+
|
91
|
+
|
92
|
+
<!-- Standard Footer for NUnit.org -->
|
93
|
+
<div id="footer">
|
94
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
95
|
+
</div>
|
96
|
+
<!-- End of Footer -->
|
97
|
+
|
98
|
+
</body>
|
99
|
+
</html>
|
data/docs/ignore.html
ADDED
@@ -0,0 +1,249 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - Ignore</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
|
+
<script language="JavaScript" src="codeFuncs.js" ></script> <!-- Do it this way for IE -->
|
28
|
+
|
29
|
+
<h3>IgnoreAttribute (NUnit 2.0)</h3>
|
30
|
+
|
31
|
+
<p>The ignore attribute is an attribute to not run a test or test fixture for a
|
32
|
+
period of time. The person marks either a Test or a TestFixture with the Ignore
|
33
|
+
Attribute. The running program sees the attribute and does not run the test or
|
34
|
+
tests. The progress bar will turn yellow if a test is not run and the test will
|
35
|
+
be mentioned in the reports that it was not run.</p>
|
36
|
+
|
37
|
+
<p>This feature should be used to temporarily not run a test or fixture. This is a
|
38
|
+
better mechanism than commenting out the test or renaming methods, since the
|
39
|
+
tests will be compiled with the rest of the code and there is an indication at
|
40
|
+
run time that a test is not being run. This insures that tests will not be
|
41
|
+
forgotten.</p>
|
42
|
+
|
43
|
+
<h4>Test Fixture Syntax</h4>
|
44
|
+
|
45
|
+
<div class="code">
|
46
|
+
|
47
|
+
<div class="langFilter">
|
48
|
+
<a href="javascript:Show('DD1')" onmouseover="Show('DD1')"><img src="img/langFilter.gif" width="14" height="14" alt="Language Filter"></a>
|
49
|
+
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
50
|
+
<a href="javascript:ShowCS()">C#</a><br>
|
51
|
+
<a href="javascript:ShowVB()">VB</a><br>
|
52
|
+
<a href="javascript:ShowMC()">C++</a><br>
|
53
|
+
<a href="javascript:ShowJS()">J#</a><br>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<pre class="cs">namespace NUnit.Tests
|
58
|
+
{
|
59
|
+
using System;
|
60
|
+
using NUnit.Framework;
|
61
|
+
|
62
|
+
[TestFixture]
|
63
|
+
[Ignore("Ignore a fixture")]
|
64
|
+
public class SuccessTests
|
65
|
+
{
|
66
|
+
// ...
|
67
|
+
}
|
68
|
+
}
|
69
|
+
</pre>
|
70
|
+
|
71
|
+
<pre class="vb">Imports System
|
72
|
+
Imports Nunit.Framework
|
73
|
+
|
74
|
+
Namespace Nunit.Tests
|
75
|
+
|
76
|
+
<TestFixture(), Ignore("Ignore a fixture")>
|
77
|
+
Public Class SuccessTests
|
78
|
+
' ...
|
79
|
+
End Class
|
80
|
+
End Namespace
|
81
|
+
</pre>
|
82
|
+
|
83
|
+
<pre class="mc">#using <Nunit.Framework.dll>
|
84
|
+
using namespace System;
|
85
|
+
using namespace NUnit::Framework;
|
86
|
+
|
87
|
+
namespace NUnitTests
|
88
|
+
{
|
89
|
+
[TestFixture]
|
90
|
+
[Ignore("Ignore a fixture")]
|
91
|
+
public __gc class SuccessTests
|
92
|
+
{
|
93
|
+
// ...
|
94
|
+
};
|
95
|
+
}
|
96
|
+
|
97
|
+
#include "cppsample.h"
|
98
|
+
|
99
|
+
namespace NUnitTests {
|
100
|
+
// ...
|
101
|
+
}
|
102
|
+
</pre>
|
103
|
+
|
104
|
+
<pre class="js">package NUnit.Tests;
|
105
|
+
|
106
|
+
import System.*;
|
107
|
+
import NUnit.Framework.TestFixture;
|
108
|
+
|
109
|
+
|
110
|
+
/** @attribute NUnit.Framework.TestFixture() */
|
111
|
+
/** @attribute NUnit.Framework.Ignore("Ignore a fixture") */
|
112
|
+
public class SuccessTests
|
113
|
+
{
|
114
|
+
// ...
|
115
|
+
}
|
116
|
+
</pre>
|
117
|
+
|
118
|
+
</div>
|
119
|
+
|
120
|
+
<h4>Test Syntax</h4>
|
121
|
+
|
122
|
+
<div class="code">
|
123
|
+
|
124
|
+
<div class="langFilter">
|
125
|
+
<a href="javascript:Show('DD2')" onmouseover="Show('DD2')"><img src="img/langFilter.gif" width="14" height="14" alt="Language Filter"></a>
|
126
|
+
<div id="DD2" class="dropdown" style="display: none;" onclick="Hide('DD2')">
|
127
|
+
<a href="javascript:ShowCS()">C#</a><br>
|
128
|
+
<a href="javascript:ShowVB()">VB</a><br>
|
129
|
+
<a href="javascript:ShowMC()">C++</a><br>
|
130
|
+
<a href="javascript:ShowJS()">J#</a><br>
|
131
|
+
</div>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<pre class="cs">namespace NUnit.Tests
|
135
|
+
{
|
136
|
+
using System;
|
137
|
+
using NUnit.Framework;
|
138
|
+
|
139
|
+
[TestFixture]
|
140
|
+
public class SuccessTests
|
141
|
+
{
|
142
|
+
[Test]
|
143
|
+
[Ignore("Ignore a test")]
|
144
|
+
public void IgnoredTest()
|
145
|
+
{ /* ... */ }
|
146
|
+
}
|
147
|
+
</pre>
|
148
|
+
|
149
|
+
<pre class="vb">Imports System
|
150
|
+
Imports Nunit.Framework
|
151
|
+
|
152
|
+
Namespace Nunit.Tests
|
153
|
+
|
154
|
+
<TestFixture()>
|
155
|
+
Public Class SuccessTests
|
156
|
+
<Test(), Ignore("Ignore a test")> Public Sub Ignored()
|
157
|
+
' ...
|
158
|
+
End Sub
|
159
|
+
End Class
|
160
|
+
End Namespace
|
161
|
+
</pre>
|
162
|
+
|
163
|
+
<pre class="mc">#using <Nunit.Framework.dll>
|
164
|
+
using namespace System;
|
165
|
+
using namespace NUnit::Framework;
|
166
|
+
|
167
|
+
namespace NUnitTests
|
168
|
+
{
|
169
|
+
[TestFixture]
|
170
|
+
public __gc class SuccessTests
|
171
|
+
{
|
172
|
+
[Test][Ignore("Ignore a test")] void IgnoredTest();
|
173
|
+
};
|
174
|
+
}
|
175
|
+
|
176
|
+
#include "cppsample.h"
|
177
|
+
|
178
|
+
namespace NUnitTests {
|
179
|
+
// ...
|
180
|
+
}
|
181
|
+
</pre>
|
182
|
+
|
183
|
+
<pre class="js">package NUnit.Tests;
|
184
|
+
|
185
|
+
import System.*;
|
186
|
+
import NUnit.Framework.TestFixture;
|
187
|
+
|
188
|
+
|
189
|
+
/** @attribute NUnit.Framework.TestFixture() */
|
190
|
+
public class SuccessTests
|
191
|
+
{
|
192
|
+
/** @attribute NUnit.Framework.Test() */
|
193
|
+
/** @attribute NUnit.Framework.Ignore("ignored test") */
|
194
|
+
public void IgnoredTest()
|
195
|
+
{ /* ... */ }
|
196
|
+
}
|
197
|
+
</pre>
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<!-- Submenu -->
|
204
|
+
<div id="subnav">
|
205
|
+
<ul>
|
206
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
207
|
+
<ul>
|
208
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
209
|
+
<li><a href="assertions.html">Assertions</a></li>
|
210
|
+
<li><a href="attributes.html">Attributes</a></li>
|
211
|
+
<ul>
|
212
|
+
<li><a href="category.html">Category</a></li>
|
213
|
+
<li><a href="culture.html">Culture</a></li>
|
214
|
+
<li><a href="description.html">Description</a></li>
|
215
|
+
<li><a href="exception.html">Expected Exception</a></li>
|
216
|
+
<li><a href="explicit.html">Explicit</a></li>
|
217
|
+
<li id="current"><a href="ignore.html">Ignore</a></li>
|
218
|
+
<li><a href="platform.html">Platform</a></li>
|
219
|
+
<li><a href="property.html">Property</a></li>
|
220
|
+
<li><a href="setCulture.html">SetCulture</a></li>
|
221
|
+
<li><a href="setup.html">Setup</a></li>
|
222
|
+
<li><a href="setupFixture.html">SetUp Fixture</a></li>
|
223
|
+
<li><a href="suite.html">Suite</a></li>
|
224
|
+
<li><a href="teardown.html">Teardown</a></li>
|
225
|
+
<li><a href="test.html">Test</a></li>
|
226
|
+
<li><a href="testFixture.html">Test Fixture</a></li>
|
227
|
+
<li><a href="fixtureSetup.html">Test Fixture SetUp</a></li>
|
228
|
+
<li><a href="fixtureTeardown.html">Test Fixture TearDown</a></li>
|
229
|
+
</ul>
|
230
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
231
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
232
|
+
<li><a href="features.html">Other Features</a></li>
|
233
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
234
|
+
<li><a href="samples.html">Samples</a></li>
|
235
|
+
<li><a href="license.html">License</a></li>
|
236
|
+
</ul>
|
237
|
+
</ul>
|
238
|
+
</div>
|
239
|
+
<!-- End of Submenu -->
|
240
|
+
|
241
|
+
|
242
|
+
<!-- Standard Footer for NUnit.org -->
|
243
|
+
<div id="footer">
|
244
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
245
|
+
</div>
|
246
|
+
<!-- End of Footer -->
|
247
|
+
|
248
|
+
</body>
|
249
|
+
</html>
|