nunit 2.4.8.0 → 2.5.0.9122
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/addinsDialog.html +36 -6
- data/docs/assertions.html +31 -12
- data/docs/attributes.html +59 -36
- data/docs/category.html +32 -9
- data/docs/collectionAssert.html +30 -12
- data/docs/collectionConstraints.html +242 -44
- data/docs/combinatorial.html +130 -0
- data/docs/comparisonAsserts.html +12 -9
- data/docs/comparisonConstraints.html +159 -25
- data/docs/compoundConstraints.html +12 -9
- data/docs/conditionAsserts.html +36 -12
- data/docs/conditionConstraints.html +131 -25
- data/docs/configEditor.html +10 -5
- data/docs/configFiles.html +5 -6
- data/docs/consoleCommandLine.html +51 -24
- data/docs/constraintModel.html +56 -19
- data/docs/contextMenu.html +10 -5
- data/docs/culture.html +32 -9
- data/docs/customConstraints.html +53 -37
- data/docs/datapoint.html +124 -0
- data/docs/datapointProviders.html +105 -0
- data/docs/delayedConstraint.html +98 -0
- data/docs/description.html +32 -9
- data/docs/directoryAssert.html +151 -0
- data/docs/equalConstraint.html +167 -47
- data/docs/equalityAsserts.html +12 -9
- data/docs/eventListeners.html +110 -0
- data/docs/exception.html +61 -36
- data/docs/exceptionAsserts.html +210 -0
- data/docs/explicit.html +32 -9
- data/docs/extensibility.html +8 -8
- data/docs/extensionTips.html +100 -0
- data/docs/fileAssert.html +12 -9
- data/docs/files/TestResult.xml +99 -67
- data/docs/fixtureSetup.html +60 -18
- data/docs/fixtureTeardown.html +56 -17
- data/docs/getStarted.html +9 -4
- data/docs/guiCommandLine.html +10 -5
- data/docs/identityAsserts.html +12 -9
- data/docs/ignore.html +32 -9
- data/docs/img/addinsDialog.JPG +0 -0
- data/docs/img/advancedSettings.jpg +0 -0
- data/docs/img/assembliesTab.jpg +0 -0
- data/docs/img/assemblyReloadSettings.JPG +0 -0
- data/docs/img/configEditor.jpg +0 -0
- data/docs/img/console-mock.jpg +0 -0
- data/docs/img/generalSettings.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/miniGui.jpg +0 -0
- data/docs/img/testLoadSettings.jpg +0 -0
- data/docs/img/testOutputSettings.jpg +0 -0
- data/docs/img/testProperties.jpg +0 -0
- data/docs/img/testResultSettings.JPG +0 -0
- data/docs/img/textOutputSettings.jpg +0 -0
- data/docs/img/treeDisplaySettings.jpg +0 -0
- data/docs/img/visualStudioSettings.jpg +0 -0
- data/docs/index.html +15 -8
- data/docs/installation.html +33 -75
- data/docs/license.html +9 -4
- data/docs/listMapper.html +12 -9
- data/docs/mainMenu.html +18 -8
- data/docs/maxtime.html +109 -0
- data/docs/multiAssembly.html +5 -6
- data/docs/nunit-console.html +9 -4
- data/docs/nunit-gui.html +32 -15
- data/docs/nunit.css +3 -3
- data/docs/nunitAddins.html +41 -144
- data/docs/pairwise.html +114 -0
- data/docs/parameterizedTests.html +141 -0
- data/docs/pathConstraints.html +162 -0
- data/docs/platform.html +37 -9
- data/docs/pnunit.html +93 -0
- data/docs/projectEditor.html +82 -11
- data/docs/property.html +39 -10
- data/docs/propertyConstraint.html +12 -9
- data/docs/quickStart.html +9 -4
- data/docs/random.html +138 -0
- data/docs/range.html +149 -0
- data/docs/releaseDetail.html +861 -0
- data/docs/releaseNotes.html +457 -1133
- data/docs/repeat.html +104 -0
- data/docs/requiredAddin.html +153 -0
- data/docs/requiresMTA.html +152 -0
- data/docs/requiresSTA.html +153 -0
- data/docs/requiresThread.html +153 -0
- data/docs/sameasConstraint.html +23 -17
- data/docs/samples.html +12 -9
- data/docs/sequential.html +132 -0
- data/docs/setCulture.html +32 -9
- data/docs/{optionsDialog.html → settingsDialog.html} +89 -53
- data/docs/setup.html +61 -16
- data/docs/setupFixture.html +32 -9
- data/docs/stringAssert.html +15 -12
- data/docs/stringConstraints.html +12 -9
- data/docs/suite.html +32 -11
- data/docs/suiteBuilders.html +106 -0
- data/docs/teardown.html +56 -16
- data/docs/test.html +67 -18
- data/docs/testCase.html +168 -0
- data/docs/testCaseSource.html +284 -0
- data/docs/testDecorators.html +117 -0
- data/docs/testFixture.html +228 -16
- data/docs/testProperties.html +10 -5
- data/docs/testcaseBuilders.html +117 -0
- data/docs/testcaseProviders.html +122 -0
- data/docs/theory.html +208 -0
- data/docs/throwsConstraint.html +112 -0
- data/docs/timeout.html +109 -0
- data/docs/typeAsserts.html +47 -14
- data/docs/typeConstraints.html +12 -9
- data/docs/upgrade.html +23 -17
- data/docs/utilityAsserts.html +38 -16
- data/docs/valueSource.html +137 -0
- data/docs/values.html +136 -0
- data/docs/vsSupport.html +5 -6
- data/lib/net-1.1/NUnitTests.config +2 -2
- data/lib/net-1.1/NUnitTests.nunit +8 -11
- data/lib/net-1.1/agent.conf +4 -0
- data/lib/net-1.1/agent.log.conf +18 -0
- data/lib/net-1.1/framework/nunit.framework.dll +0 -0
- data/lib/net-1.1/framework/nunit.framework.xml +9321 -0
- data/lib/net-1.1/framework/nunit.mocks.dll +0 -0
- data/lib/net-1.1/framework/pnunit.framework.dll +0 -0
- data/lib/net-1.1/launcher.log.conf +18 -0
- data/lib/net-1.1/{fit.dll → lib/fit.dll} +0 -0
- data/lib/net-1.1/lib/log4net.dll +0 -0
- data/lib/net-1.1/lib/nunit-console-runner.dll +0 -0
- data/lib/net-1.1/lib/nunit.core.dll +0 -0
- data/lib/net-1.1/lib/nunit.core.interfaces.dll +0 -0
- data/lib/net-1.1/lib/nunit.fixtures.dll +0 -0
- data/lib/net-1.1/lib/nunit.util.dll +0 -0
- data/lib/net-1.1/nunit-agent.exe +0 -0
- data/lib/net-1.1/{nunit.exe.config → nunit-agent.exe.config} +21 -55
- data/lib/net-1.1/nunit-console.exe +0 -0
- data/lib/net-1.1/nunit-console.exe.config +19 -49
- data/lib/net-1.1/nunit.framework.dll +0 -0
- data/lib/net-1.1/pnunit-agent.exe +0 -0
- data/lib/net-1.1/pnunit-agent.exe.config +87 -0
- data/lib/net-1.1/pnunit-launcher.exe +0 -0
- data/lib/net-1.1/pnunit-launcher.exe.config +87 -0
- data/lib/net-1.1/pnunit.framework.dll +0 -0
- data/lib/net-1.1/pnunit.tests.dll +0 -0
- data/lib/net-1.1/runpnunit.bat +2 -0
- data/lib/net-1.1/test.conf +24 -0
- data/lib/net-1.1/{loadtest-assembly.dll → tests/loadtest-assembly.dll} +0 -0
- data/lib/net-1.1/tests/mock-assembly.dll +0 -0
- data/lib/net-1.1/tests/nonamespace-assembly.dll +0 -0
- data/lib/net-1.1/tests/nunit-console.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.core.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.fixtures.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.framework.dll +0 -0
- data/lib/net-1.1/tests/nunit.framework.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.mocks.tests.dll +0 -0
- data/lib/net-1.1/{nunit.util.tests.dll → tests/nunit.util.tests.dll} +0 -0
- data/lib/net-1.1/tests/test-assembly.dll +0 -0
- data/lib/net-1.1/tests/test-utilities.dll +0 -0
- data/lib/net-1.1/tests/timing-tests.dll +0 -0
- data/lib/net-2.0/NUnitTests.config +2 -2
- data/lib/net-2.0/NUnitTests.nunit +11 -11
- data/lib/net-2.0/agent.conf +4 -0
- data/lib/net-2.0/agent.log.conf +18 -0
- data/lib/net-2.0/framework/nunit.framework.dll +0 -0
- data/lib/net-2.0/framework/nunit.framework.xml +9803 -0
- data/lib/net-2.0/framework/nunit.mocks.dll +0 -0
- data/lib/net-2.0/framework/pnunit.framework.dll +0 -0
- data/lib/net-2.0/launcher.log.conf +18 -0
- data/lib/{net-1.1 → net-2.0/lib}/Failure.jpg +0 -0
- data/lib/net-2.0/{Success.jpg → lib/Gray.jpg} +0 -0
- data/lib/{net-1.1 → net-2.0/lib}/Ignored.jpg +0 -0
- data/lib/{net-1.1 → net-2.0/lib}/Success.jpg +0 -0
- data/lib/net-2.0/{fit.dll → lib/fit.dll} +0 -0
- data/lib/net-2.0/lib/log4net.dll +0 -0
- data/lib/net-2.0/lib/nunit-console-runner.dll +0 -0
- data/lib/net-2.0/lib/nunit-gui-runner.dll +0 -0
- data/lib/net-2.0/lib/nunit.core.dll +0 -0
- data/lib/net-2.0/lib/nunit.core.interfaces.dll +0 -0
- data/lib/net-2.0/lib/nunit.fixtures.dll +0 -0
- data/lib/net-2.0/lib/nunit.uiexception.dll +0 -0
- data/lib/net-2.0/lib/nunit.uikit.dll +0 -0
- data/lib/net-2.0/lib/nunit.util.dll +0 -0
- data/lib/net-2.0/nunit-agent.exe +0 -0
- data/lib/net-2.0/nunit-agent.exe.config +87 -0
- data/lib/net-2.0/nunit-console-x86.exe +0 -0
- data/lib/net-2.0/nunit-console-x86.exe.config +19 -49
- data/lib/net-2.0/nunit-console.exe +0 -0
- data/lib/net-2.0/nunit-console.exe.config +19 -49
- data/lib/net-2.0/nunit-x86.exe +0 -0
- data/lib/net-2.0/nunit-x86.exe.config +48 -74
- data/lib/net-2.0/nunit.exe +0 -0
- data/lib/net-2.0/nunit.exe.config +48 -74
- data/lib/net-2.0/nunit.framework.dll +0 -0
- data/lib/net-2.0/pnunit-agent.exe +0 -0
- data/lib/net-2.0/pnunit-agent.exe.config +87 -0
- data/lib/net-2.0/pnunit-launcher.exe +0 -0
- data/lib/net-2.0/pnunit-launcher.exe.config +87 -0
- data/lib/net-2.0/pnunit.framework.dll +0 -0
- data/lib/net-2.0/pnunit.tests.dll +0 -0
- data/lib/net-2.0/runpnunit.bat +2 -0
- data/lib/net-2.0/test.conf +24 -0
- data/lib/net-2.0/{loadtest-assembly.dll → tests/loadtest-assembly.dll} +0 -0
- data/lib/net-2.0/tests/mock-assembly.dll +0 -0
- data/lib/net-2.0/tests/nonamespace-assembly.dll +0 -0
- data/lib/net-2.0/tests/nunit-console.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit-gui.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.core.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.fixtures.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.framework.dll +0 -0
- data/lib/net-2.0/tests/nunit.framework.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.mocks.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.uiexception.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.uikit.tests.dll +0 -0
- data/lib/net-2.0/{nunit.util.tests.dll → tests/nunit.util.tests.dll} +0 -0
- data/lib/net-2.0/tests/test-assembly.dll +0 -0
- data/lib/net-2.0/tests/test-utilities.dll +0 -0
- data/lib/net-2.0/tests/timing-tests.dll +0 -0
- metadata +131 -74
- data/docs/classicModel.html +0 -92
- data/docs/customAsserts.html +0 -115
- data/docs/features.html +0 -75
- data/docs/files/Thumbs.db +0 -0
- data/docs/platformSupport.html +0 -99
- 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.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.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.extensions.dll +0 -0
- data/lib/net-1.1/nunit.framework.tests.dll +0 -0
- data/lib/net-1.1/nunit.framework.xml +0 -5622
- 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/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/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.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.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.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.extensions.dll +0 -0
- data/lib/net-2.0/nunit.framework.tests.dll +0 -0
- data/lib/net-2.0/nunit.framework.xml +0 -5622
- 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/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
data/docs/fixtureSetup.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -26,13 +26,22 @@
|
|
26
26
|
|
27
27
|
<script language="JavaScript" src="codeFuncs.js" ></script> <!-- Do it this way for IE -->
|
28
28
|
|
29
|
-
<h3>TestFixtureSetUpAttribute (NUnit 2.1)</h3>
|
29
|
+
<h3>TestFixtureSetUpAttribute (NUnit 2.1 / 2.5)</h3>
|
30
30
|
|
31
31
|
<p>This attribute is used inside a TestFixture to provide a single set of
|
32
32
|
functions that are performed once prior to executing any of the tests
|
33
|
-
in the fixture.
|
34
|
-
|
35
|
-
|
33
|
+
in the fixture.
|
34
|
+
|
35
|
+
<p><b>Before NUnit 2.5</b>, a TestFixture could have only one TestFixtureSetUp method
|
36
|
+
and it was required to be an instance method.
|
37
|
+
|
38
|
+
<p><b>Beginning with NUnit 2.5</b>, TestFixtureSetUp methods may be either static or
|
39
|
+
instance methods and you may define more than one of them in a fixture.
|
40
|
+
Normally, multiple TestFixtureSetUp methods are only defined at different levels
|
41
|
+
of an inheritance hierarchy, as explained below.
|
42
|
+
|
43
|
+
<p>If a TestFixtueSetUp method fails or throws an exception, none of the tests
|
44
|
+
in the fixure are executed and a failure or error is reported.
|
36
45
|
|
37
46
|
<h4>Example:</h4>
|
38
47
|
|
@@ -137,14 +146,24 @@ public class SuccessTests
|
|
137
146
|
|
138
147
|
</div>
|
139
148
|
|
140
|
-
<
|
149
|
+
<h3>Inheritance</h3>
|
141
150
|
|
142
151
|
<p>The TestFixtureSetUp attribute is inherited from any base class. Therefore, if a base
|
143
152
|
class has defined a SetFixtureSetUp method, that method will be called
|
144
|
-
after each test method in the derived class.
|
145
|
-
|
146
|
-
|
147
|
-
|
153
|
+
after each test method in the derived class.
|
154
|
+
|
155
|
+
<p>Before NUnit 2.5, you were permitted only one TestFixtureSetUp method. If you wanted to
|
156
|
+
have some TestFixtureSetUp functionality in the base class and add more in the derived
|
157
|
+
class you needed to call the base class method yourself.
|
158
|
+
|
159
|
+
<p>With NUnit 2.5, you can achieve the same result by defining a TestFixtureSetUp method
|
160
|
+
in the base class and another in the derived class. NUnit will call base
|
161
|
+
class TestFixtureSetUp methods before those in the derived classes.
|
162
|
+
|
163
|
+
<p><b>Note:</b> Although it is possible to define multiple TestFixtureSetUp methods
|
164
|
+
in the same class, you should rarely do so. Unlike methods defined in
|
165
|
+
separate classes in the inheritance hierarchy, the order in which they
|
166
|
+
are executed is not guaranteed.
|
148
167
|
|
149
168
|
<h4>See also...</h4>
|
150
169
|
<ul>
|
@@ -155,33 +174,56 @@ public class SuccessTests
|
|
155
174
|
<!-- Submenu -->
|
156
175
|
<div id="subnav">
|
157
176
|
<ul>
|
158
|
-
<li><a href="index.html">NUnit 2.
|
177
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
159
178
|
<ul>
|
160
179
|
<li><a href="getStarted.html">Getting Started</a></li>
|
161
180
|
<li><a href="assertions.html">Assertions</a></li>
|
181
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
162
182
|
<li><a href="attributes.html">Attributes</a></li>
|
163
183
|
<ul>
|
164
184
|
<li><a href="category.html">Category</a></li>
|
185
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
165
186
|
<li><a href="culture.html">Culture</a></li>
|
187
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
166
188
|
<li><a href="description.html">Description</a></li>
|
167
|
-
<li><a href="exception.html">
|
189
|
+
<li><a href="exception.html">Exception</a></li>
|
168
190
|
<li><a href="explicit.html">Explicit</a></li>
|
169
191
|
<li><a href="ignore.html">Ignore</a></li>
|
192
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
193
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
170
194
|
<li><a href="platform.html">Platform</a></li>
|
171
195
|
<li><a href="property.html">Property</a></li>
|
196
|
+
<li><a href="random.html">Random</a></li>
|
197
|
+
<li><a href="range.html">Range</a></li>
|
198
|
+
<li><a href="repeat.html">Repeat</a></li>
|
199
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
200
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
201
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
202
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
203
|
+
<li><a href="sequential.html">Sequential</a></li>
|
172
204
|
<li><a href="setCulture.html">SetCulture</a></li>
|
173
205
|
<li><a href="setup.html">Setup</a></li>
|
174
|
-
<li><a href="setupFixture.html">
|
206
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
175
207
|
<li><a href="suite.html">Suite</a></li>
|
176
208
|
<li><a href="teardown.html">Teardown</a></li>
|
177
209
|
<li><a href="test.html">Test</a></li>
|
178
|
-
<li><a href="
|
179
|
-
<li
|
180
|
-
<li><a href="
|
210
|
+
<li><a href="testCase.html">TestCase</a></li>
|
211
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
212
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
213
|
+
<li id="current"><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
214
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
215
|
+
<li><a href="theory.html">Theory</a></li>
|
216
|
+
<li><a href="timeout.html">Timeout</a></li>
|
217
|
+
<li><a href="values.html">Values</a></li>
|
218
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
181
219
|
</ul>
|
182
220
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
183
221
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
184
|
-
<li><a href="
|
222
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
223
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
224
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
225
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
226
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
185
227
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
186
228
|
<li><a href="samples.html">Samples</a></li>
|
187
229
|
<li><a href="license.html">License</a></li>
|
@@ -193,7 +235,7 @@ public class SuccessTests
|
|
193
235
|
|
194
236
|
<!-- Standard Footer for NUnit.org -->
|
195
237
|
<div id="footer">
|
196
|
-
Copyright ©
|
238
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
197
239
|
</div>
|
198
240
|
<!-- End of Footer -->
|
199
241
|
|
data/docs/fixtureTeardown.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -26,13 +26,18 @@
|
|
26
26
|
|
27
27
|
<script language="JavaScript" src="codeFuncs.js" ></script> <!-- Do it this way for IE -->
|
28
28
|
|
29
|
-
<h3>TestFixtureTearDownAttribute (NUnit 2.1)</h3>
|
29
|
+
<h3>TestFixtureTearDownAttribute (NUnit 2.1 / 2.5)</h3>
|
30
30
|
|
31
31
|
<p>This attribute is used inside a TestFixture to provide a single set of
|
32
32
|
functions that are performed once after all tests are completed.
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
|
34
|
+
<p><b>Before NUnit 2.5</b>, a TestFixture could have only one SetUp method
|
35
|
+
and it was required to be an instance method.
|
36
|
+
|
37
|
+
<p><b>Beginning with NUnit 2.5</b>, TestFixtureTearDown methods may be either static or
|
38
|
+
instance methods and you may define more than one of them in a fixture.
|
39
|
+
Normally, multiple TestFixtureTearDown methods are only defined at different levels
|
40
|
+
of an inheritance hierarchy, as explained below.
|
36
41
|
|
37
42
|
<p>So long as any TestFixtureSetUp method runs without error, the TestFixtureTearDown method is
|
38
43
|
guaranteed to run. It will not run if a TestFixtureSetUp method fails or throws an
|
@@ -141,13 +146,24 @@ public class SuccessTests
|
|
141
146
|
|
142
147
|
</div>
|
143
148
|
|
144
|
-
<
|
149
|
+
<h3>Inheritance</h3>
|
145
150
|
|
146
151
|
<p>The TestFixtureTearDown attribute is inherited from any base class. Therefore, if a base
|
147
152
|
class has defined a TestFixtureTearDown method, that method will be called
|
148
|
-
after each test method in the derived class.
|
149
|
-
|
150
|
-
|
153
|
+
after each test method in the derived class.
|
154
|
+
|
155
|
+
<p>Before NUnit 2.5, you were permitted only one TestFixtureTearDown method. If you wanted to
|
156
|
+
have some TestFixtureTearDown functionality in the base class and add more in the derived
|
157
|
+
class you needed to call the base class method yourself.
|
158
|
+
|
159
|
+
<p>With NUnit 2.5, you can achieve the same result by defining a TestFixtureTearDown method
|
160
|
+
in the base class and another in the derived class. NUnit will call base
|
161
|
+
class TestFixtureTearDown methods before those in the derived classes.
|
162
|
+
|
163
|
+
<p><b>Note:</b> Although it is possible to define multiple TestFixtureTearDown methods
|
164
|
+
in the same class, you should rarely do so. Unlike methods defined in
|
165
|
+
separate classes in the inheritance hierarchy, the order in which they
|
166
|
+
are executed is not guaranteed.
|
151
167
|
|
152
168
|
<h4>See also...</h4>
|
153
169
|
<ul>
|
@@ -158,33 +174,56 @@ public class SuccessTests
|
|
158
174
|
<!-- Submenu -->
|
159
175
|
<div id="subnav">
|
160
176
|
<ul>
|
161
|
-
<li><a href="index.html">NUnit 2.
|
177
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
162
178
|
<ul>
|
163
179
|
<li><a href="getStarted.html">Getting Started</a></li>
|
164
180
|
<li><a href="assertions.html">Assertions</a></li>
|
181
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
165
182
|
<li><a href="attributes.html">Attributes</a></li>
|
166
183
|
<ul>
|
167
184
|
<li><a href="category.html">Category</a></li>
|
185
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
168
186
|
<li><a href="culture.html">Culture</a></li>
|
187
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
169
188
|
<li><a href="description.html">Description</a></li>
|
170
|
-
<li><a href="exception.html">
|
189
|
+
<li><a href="exception.html">Exception</a></li>
|
171
190
|
<li><a href="explicit.html">Explicit</a></li>
|
172
191
|
<li><a href="ignore.html">Ignore</a></li>
|
192
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
193
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
173
194
|
<li><a href="platform.html">Platform</a></li>
|
174
195
|
<li><a href="property.html">Property</a></li>
|
196
|
+
<li><a href="random.html">Random</a></li>
|
197
|
+
<li><a href="range.html">Range</a></li>
|
198
|
+
<li><a href="repeat.html">Repeat</a></li>
|
199
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
200
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
201
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
202
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
203
|
+
<li><a href="sequential.html">Sequential</a></li>
|
175
204
|
<li><a href="setCulture.html">SetCulture</a></li>
|
176
205
|
<li><a href="setup.html">Setup</a></li>
|
177
|
-
<li><a href="setupFixture.html">
|
206
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
178
207
|
<li><a href="suite.html">Suite</a></li>
|
179
208
|
<li><a href="teardown.html">Teardown</a></li>
|
180
209
|
<li><a href="test.html">Test</a></li>
|
181
|
-
<li><a href="
|
182
|
-
<li><a href="
|
183
|
-
<li
|
210
|
+
<li><a href="testCase.html">TestCase</a></li>
|
211
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
212
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
213
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
214
|
+
<li id="current"><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
215
|
+
<li><a href="theory.html">Theory</a></li>
|
216
|
+
<li><a href="timeout.html">Timeout</a></li>
|
217
|
+
<li><a href="values.html">Values</a></li>
|
218
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
184
219
|
</ul>
|
185
220
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
186
221
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
187
|
-
<li><a href="
|
222
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
223
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
224
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
225
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
226
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
188
227
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
189
228
|
<li><a href="samples.html">Samples</a></li>
|
190
229
|
<li><a href="license.html">License</a></li>
|
@@ -196,7 +235,7 @@ public class SuccessTests
|
|
196
235
|
|
197
236
|
<!-- Standard Footer for NUnit.org -->
|
198
237
|
<div id="footer">
|
199
|
-
Copyright ©
|
238
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
200
239
|
</div>
|
201
240
|
<!-- End of Footer -->
|
202
241
|
|
data/docs/getStarted.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -49,7 +49,7 @@
|
|
49
49
|
<!-- Submenu -->
|
50
50
|
<div id="subnav">
|
51
51
|
<ul>
|
52
|
-
<li><a href="index.html">NUnit 2.
|
52
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
53
53
|
<ul>
|
54
54
|
<li id="current"><a href="getStarted.html">Getting Started</a></li>
|
55
55
|
<ul>
|
@@ -57,10 +57,15 @@
|
|
57
57
|
<li><a href="installation.html">Installation</a></li>
|
58
58
|
</ul>
|
59
59
|
<li><a href="assertions.html">Assertions</a></li>
|
60
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
60
61
|
<li><a href="attributes.html">Attributes</a></li>
|
61
62
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
62
63
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
63
|
-
<li><a href="
|
64
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
65
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
66
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
67
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
68
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
64
69
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
65
70
|
<li><a href="samples.html">Samples</a></li>
|
66
71
|
<li><a href="license.html">License</a></li>
|
@@ -72,7 +77,7 @@
|
|
72
77
|
|
73
78
|
<!-- Standard Footer for NUnit.org -->
|
74
79
|
<div id="footer">
|
75
|
-
Copyright ©
|
80
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
76
81
|
</div>
|
77
82
|
<!-- End of Footer -->
|
78
83
|
|
data/docs/guiCommandLine.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -146,10 +146,11 @@ option:
|
|
146
146
|
<!-- Submenu -->
|
147
147
|
<div id="subnav">
|
148
148
|
<ul>
|
149
|
-
<li><a href="index.html">NUnit 2.
|
149
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
150
150
|
<ul>
|
151
151
|
<li><a href="getStarted.html">Getting Started</a></li>
|
152
152
|
<li><a href="assertions.html">Assertions</a></li>
|
153
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
153
154
|
<li><a href="attributes.html">Attributes</a></li>
|
154
155
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
155
156
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
@@ -157,13 +158,17 @@ option:
|
|
157
158
|
<li id="current"><a href="guiCommandLine.html">Command-Line</a></li>
|
158
159
|
<li><a href="mainMenu.html">Main Menu</a></li>
|
159
160
|
<li><a href="contextMenu.html">Context Menu</a></li>
|
160
|
-
<li><a href="
|
161
|
+
<li><a href="settingsDialog.html">Settings Dialog</a></li>
|
161
162
|
<li><a href="addinsDialog.html">Addins Dialog</a></li>
|
162
163
|
<li><a href="testProperties.html">Test Properties</a></li>
|
163
164
|
<li><a href="configEditor.html">Configuration Editor</a></li>
|
164
165
|
<li><a href="projectEditor.html">Project Editor</a></li>
|
165
166
|
</ul>
|
166
|
-
<li><a href="
|
167
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
168
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
169
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
170
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
171
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
167
172
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
168
173
|
<li><a href="samples.html">Samples</a></li>
|
169
174
|
<li><a href="license.html">License</a></li>
|
@@ -175,7 +180,7 @@ option:
|
|
175
180
|
|
176
181
|
<!-- Standard Footer for NUnit.org -->
|
177
182
|
<div id="footer">
|
178
|
-
Copyright ©
|
183
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
179
184
|
</div>
|
180
185
|
<!-- End of Footer -->
|
181
186
|
|
data/docs/identityAsserts.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -57,29 +57,32 @@ Assert.Contains( object anObject, IList collection,
|
|
57
57
|
<!-- Submenu -->
|
58
58
|
<div id="subnav">
|
59
59
|
<ul>
|
60
|
-
<li><a href="index.html">NUnit 2.
|
60
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
61
61
|
<ul>
|
62
62
|
<li><a href="getStarted.html">Getting Started</a></li>
|
63
63
|
<li><a href="assertions.html">Assertions</a></li>
|
64
64
|
<ul>
|
65
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
66
|
-
<ul>
|
67
65
|
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
68
66
|
<li id="current"><a href="identityAsserts.html">Identity Asserts</a></li>
|
69
|
-
<li><a href="conditionAsserts.html">Condition
|
67
|
+
<li><a href="conditionAsserts.html">Condition Asserts</a></li>
|
70
68
|
<li><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
71
69
|
<li><a href="typeAsserts.html">Type Asserts</a></li>
|
70
|
+
<li><a href="exceptionAsserts.html">Exception Asserts</a></li>
|
72
71
|
<li><a href="utilityAsserts.html">Utility Methods</a></li>
|
73
72
|
<li><a href="stringAssert.html">String Assert</a></li>
|
74
73
|
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
75
74
|
<li><a href="fileAssert.html">File Assert</a></li>
|
75
|
+
<li><a href="directoryAssert.html">Directory Assert</a></li>
|
76
76
|
</ul>
|
77
|
-
<li><a href="constraintModel.html">
|
78
|
-
</ul>
|
77
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
79
78
|
<li><a href="attributes.html">Attributes</a></li>
|
80
79
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
81
80
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
82
|
-
<li><a href="
|
81
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
82
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
83
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
84
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
85
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
83
86
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
84
87
|
<li><a href="samples.html">Samples</a></li>
|
85
88
|
<li><a href="license.html">License</a></li>
|
@@ -91,7 +94,7 @@ Assert.Contains( object anObject, IList collection,
|
|
91
94
|
|
92
95
|
<!-- Standard Footer for NUnit.org -->
|
93
96
|
<div id="footer">
|
94
|
-
Copyright ©
|
97
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
95
98
|
</div>
|
96
99
|
<!-- End of Footer -->
|
97
100
|
|
data/docs/ignore.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -203,33 +203,56 @@ public class SuccessTests
|
|
203
203
|
<!-- Submenu -->
|
204
204
|
<div id="subnav">
|
205
205
|
<ul>
|
206
|
-
<li><a href="index.html">NUnit 2.
|
206
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
207
207
|
<ul>
|
208
208
|
<li><a href="getStarted.html">Getting Started</a></li>
|
209
209
|
<li><a href="assertions.html">Assertions</a></li>
|
210
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
210
211
|
<li><a href="attributes.html">Attributes</a></li>
|
211
212
|
<ul>
|
212
213
|
<li><a href="category.html">Category</a></li>
|
214
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
213
215
|
<li><a href="culture.html">Culture</a></li>
|
216
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
214
217
|
<li><a href="description.html">Description</a></li>
|
215
|
-
<li><a href="exception.html">
|
218
|
+
<li><a href="exception.html">Exception</a></li>
|
216
219
|
<li><a href="explicit.html">Explicit</a></li>
|
217
220
|
<li id="current"><a href="ignore.html">Ignore</a></li>
|
221
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
222
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
218
223
|
<li><a href="platform.html">Platform</a></li>
|
219
224
|
<li><a href="property.html">Property</a></li>
|
225
|
+
<li><a href="random.html">Random</a></li>
|
226
|
+
<li><a href="range.html">Range</a></li>
|
227
|
+
<li><a href="repeat.html">Repeat</a></li>
|
228
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
229
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
230
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
231
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
232
|
+
<li><a href="sequential.html">Sequential</a></li>
|
220
233
|
<li><a href="setCulture.html">SetCulture</a></li>
|
221
234
|
<li><a href="setup.html">Setup</a></li>
|
222
|
-
<li><a href="setupFixture.html">
|
235
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
223
236
|
<li><a href="suite.html">Suite</a></li>
|
224
237
|
<li><a href="teardown.html">Teardown</a></li>
|
225
238
|
<li><a href="test.html">Test</a></li>
|
226
|
-
<li><a href="
|
227
|
-
<li><a href="
|
228
|
-
<li><a href="
|
239
|
+
<li><a href="testCase.html">TestCase</a></li>
|
240
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
241
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
242
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
243
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
244
|
+
<li><a href="theory.html">Theory</a></li>
|
245
|
+
<li><a href="timeout.html">Timeout</a></li>
|
246
|
+
<li><a href="values.html">Values</a></li>
|
247
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
229
248
|
</ul>
|
230
249
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
231
250
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
232
|
-
<li><a href="
|
251
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
252
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
253
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
254
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
255
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
233
256
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
234
257
|
<li><a href="samples.html">Samples</a></li>
|
235
258
|
<li><a href="license.html">License</a></li>
|
@@ -241,7 +264,7 @@ public class SuccessTests
|
|
241
264
|
|
242
265
|
<!-- Standard Footer for NUnit.org -->
|
243
266
|
<div id="footer">
|
244
|
-
Copyright ©
|
267
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
245
268
|
</div>
|
246
269
|
<!-- End of Footer -->
|
247
270
|
|