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
@@ -0,0 +1,153 @@
|
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - RequiresThread</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
|
+
<h3>RequiresThreadAttribute (NUnit 2.5)</h3>
|
28
|
+
|
29
|
+
<p>The <b>RequiresThreadAttribute</b> is used to indicate that a test method,
|
30
|
+
class or assembly should be run on a separate thread. Optionally, the
|
31
|
+
desired apartment for the thread may be specified in the constructor.
|
32
|
+
|
33
|
+
<p><b>Note:</b> This attribute, used with or without an ApartmentState
|
34
|
+
argument will <b>always</b> result in creation of a new thread. To
|
35
|
+
create a thread only if the current ApartmentState is not appropriate,
|
36
|
+
use <b>RequiresSTAAttribute</b> or <b>RequiresMTAAttribute</b>.
|
37
|
+
|
38
|
+
<h4>Examples</h4>
|
39
|
+
|
40
|
+
<div class="code">
|
41
|
+
|
42
|
+
<pre>
|
43
|
+
|
44
|
+
// A thread will be created and used to run
|
45
|
+
// all the tests in the assembly
|
46
|
+
[assembly:RequiresThread]
|
47
|
+
|
48
|
+
...
|
49
|
+
|
50
|
+
// TestFixture requiring a separate thread
|
51
|
+
[TestFixture, RequiresThread]
|
52
|
+
public class FixtureOnThread
|
53
|
+
{
|
54
|
+
// A separate thread will be created and all
|
55
|
+
// tests in the fixture will run on it.
|
56
|
+
}
|
57
|
+
|
58
|
+
[TestFixture]
|
59
|
+
public class AnotherFixture
|
60
|
+
{
|
61
|
+
[Test, RequiresThread]
|
62
|
+
public void TestRequiringThread()
|
63
|
+
{
|
64
|
+
// A separate thread will be created for this test
|
65
|
+
}
|
66
|
+
|
67
|
+
[Test, RequiresThread(ApartmentState.STA)]
|
68
|
+
public void TestRequiringSTAThread()
|
69
|
+
{
|
70
|
+
// A separate STA thread will be created for tnis test.
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
</pre>
|
75
|
+
|
76
|
+
</div>
|
77
|
+
|
78
|
+
<h4>See also...</h4>
|
79
|
+
<ul>
|
80
|
+
<li><a href="requiresSTA.html">RequiresSTAAttribute</a><li><a href="requiresMTA.html">RequiresMTAAttribute</a></ul>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
|
84
|
+
<!-- Submenu -->
|
85
|
+
<div id="subnav">
|
86
|
+
<ul>
|
87
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
88
|
+
<ul>
|
89
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
90
|
+
<li><a href="assertions.html">Assertions</a></li>
|
91
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
92
|
+
<li><a href="attributes.html">Attributes</a></li>
|
93
|
+
<ul>
|
94
|
+
<li><a href="category.html">Category</a></li>
|
95
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
96
|
+
<li><a href="culture.html">Culture</a></li>
|
97
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
98
|
+
<li><a href="description.html">Description</a></li>
|
99
|
+
<li><a href="exception.html">Exception</a></li>
|
100
|
+
<li><a href="explicit.html">Explicit</a></li>
|
101
|
+
<li><a href="ignore.html">Ignore</a></li>
|
102
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
103
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
104
|
+
<li><a href="platform.html">Platform</a></li>
|
105
|
+
<li><a href="property.html">Property</a></li>
|
106
|
+
<li><a href="random.html">Random</a></li>
|
107
|
+
<li><a href="range.html">Range</a></li>
|
108
|
+
<li><a href="repeat.html">Repeat</a></li>
|
109
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
110
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
111
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
112
|
+
<li id="current"><a href="requiresThread.html">Requires Thread</a></li>
|
113
|
+
<li><a href="sequential.html">Sequential</a></li>
|
114
|
+
<li><a href="setCulture.html">SetCulture</a></li>
|
115
|
+
<li><a href="setup.html">Setup</a></li>
|
116
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
117
|
+
<li><a href="suite.html">Suite</a></li>
|
118
|
+
<li><a href="teardown.html">Teardown</a></li>
|
119
|
+
<li><a href="test.html">Test</a></li>
|
120
|
+
<li><a href="testCase.html">TestCase</a></li>
|
121
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
122
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
123
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
124
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
125
|
+
<li><a href="theory.html">Theory</a></li>
|
126
|
+
<li><a href="timeout.html">Timeout</a></li>
|
127
|
+
<li><a href="values.html">Values</a></li>
|
128
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
129
|
+
</ul>
|
130
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
131
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
132
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
133
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
134
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
135
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
136
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
137
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
138
|
+
<li><a href="samples.html">Samples</a></li>
|
139
|
+
<li><a href="license.html">License</a></li>
|
140
|
+
</ul>
|
141
|
+
</ul>
|
142
|
+
</div>
|
143
|
+
<!-- End of Submenu -->
|
144
|
+
|
145
|
+
|
146
|
+
<!-- Standard Footer for NUnit.org -->
|
147
|
+
<div id="footer">
|
148
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
149
|
+
</div>
|
150
|
+
<!-- End of Footer -->
|
151
|
+
|
152
|
+
</body>
|
153
|
+
</html>
|
data/docs/sameasConstraint.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>
|
@@ -30,10 +30,17 @@
|
|
30
30
|
as an actual value has the same identity as the object supplied
|
31
31
|
in its constructor.
|
32
32
|
|
33
|
-
<
|
34
|
-
|
35
|
-
<
|
36
|
-
|
33
|
+
<h4>Constructor</h4>
|
34
|
+
|
35
|
+
<div class="code"><pre>
|
36
|
+
SameAsConstraint( object expected )
|
37
|
+
</pre></div>
|
38
|
+
|
39
|
+
<h4>Syntax</h4>
|
40
|
+
|
41
|
+
<div class="code"><pre>
|
42
|
+
Is.SameAs( object expected )
|
43
|
+
</pre></div>
|
37
44
|
|
38
45
|
<h4>Examples of Use</h4>
|
39
46
|
|
@@ -44,41 +51,40 @@ Assert.That( ex2, Is.SameAs( ex1 ) );
|
|
44
51
|
|
45
52
|
Exception ex3 = new Exception();
|
46
53
|
Assert.That( ex3, Is.Not.SameAs( ex1 ) );
|
47
|
-
|
48
|
-
// Using inheritance
|
49
|
-
Expect( ex2, SameAs( ex1 ) );
|
50
|
-
Expect( ex3, Not.SameAs( ex1 ) );
|
51
54
|
</pre></div>
|
52
55
|
</div>
|
53
56
|
|
54
57
|
<!-- Submenu -->
|
55
58
|
<div id="subnav">
|
56
59
|
<ul>
|
57
|
-
<li><a href="index.html">NUnit 2.
|
60
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
58
61
|
<ul>
|
59
62
|
<li><a href="getStarted.html">Getting Started</a></li>
|
60
63
|
<li><a href="assertions.html">Assertions</a></li>
|
61
|
-
<
|
62
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
63
|
-
<li><a href="constraintModel.html">Constraint Model</a></li>
|
64
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
64
65
|
<ul>
|
65
66
|
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
66
67
|
<li id="current"><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
67
68
|
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
68
69
|
<li><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
70
|
+
<li><a href="pathConstraints.html">Path Constraints</a></li>
|
69
71
|
<li><a href="typeConstraints.html">Type Constraints</a></li>
|
70
72
|
<li><a href="stringConstraints.html">String Constraints</a></li>
|
71
73
|
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
72
74
|
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
75
|
+
<li><a href="throwsConstraint.html">Throws Constraint</a></li>
|
73
76
|
<li><a href="compoundConstraints.html">Compound Constraints</a></li>
|
74
|
-
<li><a href="
|
77
|
+
<li><a href="delayedConstraint.html">Delayed Constraint</a></li>
|
75
78
|
<li><a href="listMapper.html">List Mapper</a></li>
|
76
79
|
</ul>
|
77
|
-
</ul>
|
78
80
|
<li><a href="attributes.html">Attributes</a></li>
|
79
81
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
80
82
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
81
|
-
<li><a href="
|
83
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
84
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
85
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
86
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
87
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
82
88
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
83
89
|
<li><a href="samples.html">Samples</a></li>
|
84
90
|
<li><a href="license.html">License</a></li>
|
@@ -90,7 +96,7 @@ Expect( ex3, Not.SameAs( ex1 ) );
|
|
90
96
|
|
91
97
|
<!-- Standard Footer for NUnit.org -->
|
92
98
|
<div id="footer">
|
93
|
-
Copyright ©
|
99
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
94
100
|
</div>
|
95
101
|
<!-- End of Footer -->
|
96
102
|
|
data/docs/samples.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>
|
@@ -29,8 +29,9 @@ dt { font-weight: bold; }
|
|
29
29
|
--></style>
|
30
30
|
<h2>Samples</h2>
|
31
31
|
|
32
|
-
NUnit 2.
|
33
|
-
|
32
|
+
NUnit 2.5 samples continue to be organized by language, with an additional
|
33
|
+
folder for Extensibility examples. The 'money-port' example has been
|
34
|
+
removed.
|
34
35
|
|
35
36
|
<h3>C# Samples</h3>
|
36
37
|
<dl>
|
@@ -40,9 +41,6 @@ by language, with an additional folder for Extensility examples.
|
|
40
41
|
<dt>Money
|
41
42
|
<dd>This is a C# version of the money example which is found in most xUnit
|
42
43
|
implementations. Thanks to Kent Beck.
|
43
|
-
<dt>Money-port
|
44
|
-
<dd>This is an example of the minimum amount of work that is needed to
|
45
|
-
upgrade from previous versions of NUnit to this version.
|
46
44
|
</dl>
|
47
45
|
|
48
46
|
<h3>J# Samples</h3>
|
@@ -99,14 +97,19 @@ by language, with an additional folder for Extensility examples.
|
|
99
97
|
<!-- Submenu -->
|
100
98
|
<div id="subnav">
|
101
99
|
<ul>
|
102
|
-
<li><a href="index.html">NUnit 2.
|
100
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
103
101
|
<ul>
|
104
102
|
<li><a href="getStarted.html">Getting Started</a></li>
|
105
103
|
<li><a href="assertions.html">Assertions</a></li>
|
104
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
106
105
|
<li><a href="attributes.html">Attributes</a></li>
|
107
106
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
108
107
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
109
|
-
<li><a href="
|
108
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
109
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
110
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
111
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
112
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
110
113
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
111
114
|
<li id="current"><a href="samples.html">Samples</a></li>
|
112
115
|
<li><a href="license.html">License</a></li>
|
@@ -118,7 +121,7 @@ by language, with an additional folder for Extensility examples.
|
|
118
121
|
|
119
122
|
<!-- Standard Footer for NUnit.org -->
|
120
123
|
<div id="footer">
|
121
|
-
Copyright ©
|
124
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
122
125
|
</div>
|
123
126
|
<!-- End of Footer -->
|
124
127
|
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - Sequential</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
|
+
<h3>SequentialAttribute (NUnit 2.5)</h3>
|
28
|
+
|
29
|
+
<p>The <b>SequentialAttribute</b> is used on a test to specify that NUnit should
|
30
|
+
generate test cases by selecting individual data items provided
|
31
|
+
for the parameters of the test, without generating additional
|
32
|
+
combinations.
|
33
|
+
|
34
|
+
<p><b>Note:</b> If parameter data is provided by multiple attributes,
|
35
|
+
the order in which NUnit uses the data items is not guaranteed. However,
|
36
|
+
it can be expected to remain constant for a given runtime and operating
|
37
|
+
system.
|
38
|
+
|
39
|
+
<h4>Example</h4>
|
40
|
+
|
41
|
+
<p>The following test will be executed three times, as follows:
|
42
|
+
<pre>
|
43
|
+
MyTest(1, "A")
|
44
|
+
MyTest(2, "B")
|
45
|
+
MyTest(3, null)
|
46
|
+
</pre>
|
47
|
+
<div class="code"><pre>
|
48
|
+
[Test, Sequential]
|
49
|
+
public void MyTest(
|
50
|
+
[Values(1,2,3) int x,
|
51
|
+
[Values("A","B"] string s)
|
52
|
+
{
|
53
|
+
...
|
54
|
+
}
|
55
|
+
</pre></div>
|
56
|
+
|
57
|
+
<h4>See also...</h4>
|
58
|
+
<ul>
|
59
|
+
<li><a href="combinatorial.html">CombinatorialAttribute</a><li><a href="pairwise.html">PairwiseAttribute</a></ul>
|
60
|
+
|
61
|
+
</div>
|
62
|
+
|
63
|
+
<!-- Submenu -->
|
64
|
+
<div id="subnav">
|
65
|
+
<ul>
|
66
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
67
|
+
<ul>
|
68
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
69
|
+
<li><a href="assertions.html">Assertions</a></li>
|
70
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
71
|
+
<li><a href="attributes.html">Attributes</a></li>
|
72
|
+
<ul>
|
73
|
+
<li><a href="category.html">Category</a></li>
|
74
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
75
|
+
<li><a href="culture.html">Culture</a></li>
|
76
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
77
|
+
<li><a href="description.html">Description</a></li>
|
78
|
+
<li><a href="exception.html">Exception</a></li>
|
79
|
+
<li><a href="explicit.html">Explicit</a></li>
|
80
|
+
<li><a href="ignore.html">Ignore</a></li>
|
81
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
82
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
83
|
+
<li><a href="platform.html">Platform</a></li>
|
84
|
+
<li><a href="property.html">Property</a></li>
|
85
|
+
<li><a href="random.html">Random</a></li>
|
86
|
+
<li><a href="range.html">Range</a></li>
|
87
|
+
<li><a href="repeat.html">Repeat</a></li>
|
88
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
89
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
90
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
91
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
92
|
+
<li id="current"><a href="sequential.html">Sequential</a></li>
|
93
|
+
<li><a href="setCulture.html">SetCulture</a></li>
|
94
|
+
<li><a href="setup.html">Setup</a></li>
|
95
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
96
|
+
<li><a href="suite.html">Suite</a></li>
|
97
|
+
<li><a href="teardown.html">Teardown</a></li>
|
98
|
+
<li><a href="test.html">Test</a></li>
|
99
|
+
<li><a href="testCase.html">TestCase</a></li>
|
100
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
101
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
102
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
103
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
104
|
+
<li><a href="theory.html">Theory</a></li>
|
105
|
+
<li><a href="timeout.html">Timeout</a></li>
|
106
|
+
<li><a href="values.html">Values</a></li>
|
107
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
108
|
+
</ul>
|
109
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
110
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
111
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
112
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
113
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
114
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
115
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
116
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
117
|
+
<li><a href="samples.html">Samples</a></li>
|
118
|
+
<li><a href="license.html">License</a></li>
|
119
|
+
</ul>
|
120
|
+
</ul>
|
121
|
+
</div>
|
122
|
+
<!-- End of Submenu -->
|
123
|
+
|
124
|
+
|
125
|
+
<!-- Standard Footer for NUnit.org -->
|
126
|
+
<div id="footer">
|
127
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
128
|
+
</div>
|
129
|
+
<!-- End of Footer -->
|
130
|
+
|
131
|
+
</body>
|
132
|
+
</html>
|
data/docs/setCulture.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>
|
@@ -127,33 +127,56 @@ public class FrenchCultureTests
|
|
127
127
|
<!-- Submenu -->
|
128
128
|
<div id="subnav">
|
129
129
|
<ul>
|
130
|
-
<li><a href="index.html">NUnit 2.
|
130
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
131
131
|
<ul>
|
132
132
|
<li><a href="getStarted.html">Getting Started</a></li>
|
133
133
|
<li><a href="assertions.html">Assertions</a></li>
|
134
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
134
135
|
<li><a href="attributes.html">Attributes</a></li>
|
135
136
|
<ul>
|
136
137
|
<li><a href="category.html">Category</a></li>
|
138
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
137
139
|
<li><a href="culture.html">Culture</a></li>
|
140
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
138
141
|
<li><a href="description.html">Description</a></li>
|
139
|
-
<li><a href="exception.html">
|
142
|
+
<li><a href="exception.html">Exception</a></li>
|
140
143
|
<li><a href="explicit.html">Explicit</a></li>
|
141
144
|
<li><a href="ignore.html">Ignore</a></li>
|
145
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
146
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
142
147
|
<li><a href="platform.html">Platform</a></li>
|
143
148
|
<li><a href="property.html">Property</a></li>
|
149
|
+
<li><a href="random.html">Random</a></li>
|
150
|
+
<li><a href="range.html">Range</a></li>
|
151
|
+
<li><a href="repeat.html">Repeat</a></li>
|
152
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
153
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
154
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
155
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
156
|
+
<li><a href="sequential.html">Sequential</a></li>
|
144
157
|
<li id="current"><a href="setCulture.html">SetCulture</a></li>
|
145
158
|
<li><a href="setup.html">Setup</a></li>
|
146
|
-
<li><a href="setupFixture.html">
|
159
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
147
160
|
<li><a href="suite.html">Suite</a></li>
|
148
161
|
<li><a href="teardown.html">Teardown</a></li>
|
149
162
|
<li><a href="test.html">Test</a></li>
|
150
|
-
<li><a href="
|
151
|
-
<li><a href="
|
152
|
-
<li><a href="
|
163
|
+
<li><a href="testCase.html">TestCase</a></li>
|
164
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
165
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
166
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
167
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
168
|
+
<li><a href="theory.html">Theory</a></li>
|
169
|
+
<li><a href="timeout.html">Timeout</a></li>
|
170
|
+
<li><a href="values.html">Values</a></li>
|
171
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
153
172
|
</ul>
|
154
173
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
155
174
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
156
|
-
<li><a href="
|
175
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
176
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
177
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
178
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
179
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
157
180
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
158
181
|
<li><a href="samples.html">Samples</a></li>
|
159
182
|
<li><a href="license.html">License</a></li>
|
@@ -165,7 +188,7 @@ public class FrenchCultureTests
|
|
165
188
|
|
166
189
|
<!-- Standard Footer for NUnit.org -->
|
167
190
|
<div id="footer">
|
168
|
-
Copyright ©
|
191
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
169
192
|
</div>
|
170
193
|
<!-- End of Footer -->
|
171
194
|
|