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/constraintModel.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>
|
@@ -42,28 +42,62 @@ to create an <b>EqualConstraint</b>. The same assertion could also be made in th
|
|
42
42
|
Assert.That() method, which has a number of overloads...
|
43
43
|
|
44
44
|
<div class="code" style="width: 36em">
|
45
|
-
<pre>
|
46
|
-
Assert.That( object actual,
|
47
|
-
Assert.That( object actual,
|
48
|
-
|
45
|
+
<pre>
|
46
|
+
Assert.That( object actual, IResolveConstraint constraint )
|
47
|
+
Assert.That( object actual, IResolveConstraint constraint,
|
48
|
+
string message )
|
49
|
+
Assert.That( object actual, IResolveConstraint constraint,
|
50
|
+
string message, object[] parms )
|
51
|
+
|
52
|
+
Assert.That( ActualValueDelegate del, IResolveConstraint constraint )
|
53
|
+
Assert.That( ActualValueDelegate del, IResolveConstraint constraint,
|
54
|
+
string message )
|
55
|
+
Assert.That( ActualValueDelegate del, IResolveConstraint constraint,
|
56
|
+
string message, object[] parms )
|
57
|
+
|
58
|
+
Assert.That<T>( ref T actual, IResolveConstraint constraint )
|
59
|
+
Assert.That<T>( ref T actual, IResolveConstraint constraint,
|
60
|
+
string message )
|
61
|
+
Assert.That<T>( ref T actual, IResolveConstraint constraint,
|
62
|
+
string message, object[] parms )
|
49
63
|
|
50
64
|
Assert.That( bool condition );
|
51
65
|
Assert.That( bool condition, string message );
|
52
|
-
Assert.That( bool condition, string message, object[] parms )
|
66
|
+
Assert.That( bool condition, string message, object[] parms );
|
67
|
+
|
68
|
+
Assert.That( TestDelegate del, IResolveConstraint constraint );
|
69
|
+
</pre>
|
53
70
|
</div>
|
54
71
|
|
55
72
|
<p>If you derive your test fixture class from <b>AssertionHelper</b>, the
|
56
73
|
Expect() method may be used in place of Assert.That()...
|
57
74
|
|
58
75
|
<div class="code" style="width: 36em">
|
59
|
-
<pre>
|
60
|
-
Expect( object actual,
|
61
|
-
Expect( object actual,
|
62
|
-
|
76
|
+
<pre>
|
77
|
+
Expect( object actual, IResolveConstraint constraint )
|
78
|
+
Expect( object actual, IResolveConstraint constraint,
|
79
|
+
string message )
|
80
|
+
Expect( object actual, IResolveConstraint constraint,
|
81
|
+
string message, object[] parms )
|
82
|
+
|
83
|
+
Expect( ActualValueDelegate del, IResolveConstraint constraint )
|
84
|
+
Expect( ActualValueDelegate del, IResolveConstraint constraint,
|
85
|
+
string message )
|
86
|
+
Expect( ActualValueDelegate del, IResolveConstraint constraint,
|
87
|
+
string message, object[] parms )
|
88
|
+
|
89
|
+
Expect<T>( ref T actual, IResolveConstraint constraint )
|
90
|
+
Expect<T>( ref T actual, IResolveConstraint constraint,
|
91
|
+
string message )
|
92
|
+
Expect<T>( ref T actual, IResolveConstraint constraint,
|
93
|
+
string message, object[] parms )
|
63
94
|
|
64
95
|
Expect( bool condition );
|
65
96
|
Expect( bool condition, string message );
|
66
|
-
Expect( bool condition, string message, object[] parms )
|
97
|
+
Expect( bool condition, string message, object[] parms );
|
98
|
+
|
99
|
+
Expect( TestDelegate del, IResolveConstraint constraint );
|
100
|
+
</pre>
|
67
101
|
</div>
|
68
102
|
|
69
103
|
<p>The overloads that take a bool work exactly like Assert.IsTrue.
|
@@ -90,31 +124,34 @@ Expect( bool condition, string message, object[] parms );</pre>
|
|
90
124
|
<!-- Submenu -->
|
91
125
|
<div id="subnav">
|
92
126
|
<ul>
|
93
|
-
<li><a href="index.html">NUnit 2.
|
127
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
94
128
|
<ul>
|
95
129
|
<li><a href="getStarted.html">Getting Started</a></li>
|
96
130
|
<li><a href="assertions.html">Assertions</a></li>
|
97
|
-
<
|
98
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
99
|
-
<li id="current"><a href="constraintModel.html">Constraint Model</a></li>
|
131
|
+
<li id="current"><a href="constraintModel.html">Constraints</a></li>
|
100
132
|
<ul>
|
101
133
|
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
102
134
|
<li><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
103
135
|
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
104
136
|
<li><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
137
|
+
<li><a href="pathConstraints.html">Path Constraints</a></li>
|
105
138
|
<li><a href="typeConstraints.html">Type Constraints</a></li>
|
106
139
|
<li><a href="stringConstraints.html">String Constraints</a></li>
|
107
140
|
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
108
141
|
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
142
|
+
<li><a href="throwsConstraint.html">Throws Constraint</a></li>
|
109
143
|
<li><a href="compoundConstraints.html">Compound Constraints</a></li>
|
110
|
-
<li><a href="
|
144
|
+
<li><a href="delayedConstraint.html">Delayed Constraint</a></li>
|
111
145
|
<li><a href="listMapper.html">List Mapper</a></li>
|
112
146
|
</ul>
|
113
|
-
</ul>
|
114
147
|
<li><a href="attributes.html">Attributes</a></li>
|
115
148
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
116
149
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
117
|
-
<li><a href="
|
150
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
151
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
152
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
153
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
154
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
118
155
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
119
156
|
<li><a href="samples.html">Samples</a></li>
|
120
157
|
<li><a href="license.html">License</a></li>
|
@@ -126,7 +163,7 @@ Expect( bool condition, string message, object[] parms );</pre>
|
|
126
163
|
|
127
164
|
<!-- Standard Footer for NUnit.org -->
|
128
165
|
<div id="footer">
|
129
|
-
Copyright ©
|
166
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
130
167
|
</div>
|
131
168
|
<!-- End of Footer -->
|
132
169
|
|
data/docs/contextMenu.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>
|
@@ -69,10 +69,11 @@ results in substantial reduction in load time.</p>
|
|
69
69
|
<!-- Submenu -->
|
70
70
|
<div id="subnav">
|
71
71
|
<ul>
|
72
|
-
<li><a href="index.html">NUnit 2.
|
72
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
73
73
|
<ul>
|
74
74
|
<li><a href="getStarted.html">Getting Started</a></li>
|
75
75
|
<li><a href="assertions.html">Assertions</a></li>
|
76
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
76
77
|
<li><a href="attributes.html">Attributes</a></li>
|
77
78
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
78
79
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
@@ -80,13 +81,17 @@ results in substantial reduction in load time.</p>
|
|
80
81
|
<li><a href="guiCommandLine.html">Command-Line</a></li>
|
81
82
|
<li><a href="mainMenu.html">Main Menu</a></li>
|
82
83
|
<li id="current"><a href="contextMenu.html">Context Menu</a></li>
|
83
|
-
<li><a href="
|
84
|
+
<li><a href="settingsDialog.html">Settings Dialog</a></li>
|
84
85
|
<li><a href="addinsDialog.html">Addins Dialog</a></li>
|
85
86
|
<li><a href="testProperties.html">Test Properties</a></li>
|
86
87
|
<li><a href="configEditor.html">Configuration Editor</a></li>
|
87
88
|
<li><a href="projectEditor.html">Project Editor</a></li>
|
88
89
|
</ul>
|
89
|
-
<li><a href="
|
90
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
91
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
92
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
93
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
94
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
90
95
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
91
96
|
<li><a href="samples.html">Samples</a></li>
|
92
97
|
<li><a href="license.html">License</a></li>
|
@@ -98,7 +103,7 @@ results in substantial reduction in load time.</p>
|
|
98
103
|
|
99
104
|
<!-- Standard Footer for NUnit.org -->
|
100
105
|
<div id="footer">
|
101
|
-
Copyright ©
|
106
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
102
107
|
</div>
|
103
108
|
<!-- End of Footer -->
|
104
109
|
|
data/docs/culture.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>
|
@@ -209,33 +209,56 @@ public class SuccessTests
|
|
209
209
|
<!-- Submenu -->
|
210
210
|
<div id="subnav">
|
211
211
|
<ul>
|
212
|
-
<li><a href="index.html">NUnit 2.
|
212
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
213
213
|
<ul>
|
214
214
|
<li><a href="getStarted.html">Getting Started</a></li>
|
215
215
|
<li><a href="assertions.html">Assertions</a></li>
|
216
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
216
217
|
<li><a href="attributes.html">Attributes</a></li>
|
217
218
|
<ul>
|
218
219
|
<li><a href="category.html">Category</a></li>
|
220
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
219
221
|
<li id="current"><a href="culture.html">Culture</a></li>
|
222
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
220
223
|
<li><a href="description.html">Description</a></li>
|
221
|
-
<li><a href="exception.html">
|
224
|
+
<li><a href="exception.html">Exception</a></li>
|
222
225
|
<li><a href="explicit.html">Explicit</a></li>
|
223
226
|
<li><a href="ignore.html">Ignore</a></li>
|
227
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
228
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
224
229
|
<li><a href="platform.html">Platform</a></li>
|
225
230
|
<li><a href="property.html">Property</a></li>
|
231
|
+
<li><a href="random.html">Random</a></li>
|
232
|
+
<li><a href="range.html">Range</a></li>
|
233
|
+
<li><a href="repeat.html">Repeat</a></li>
|
234
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
235
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
236
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
237
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
238
|
+
<li><a href="sequential.html">Sequential</a></li>
|
226
239
|
<li><a href="setCulture.html">SetCulture</a></li>
|
227
240
|
<li><a href="setup.html">Setup</a></li>
|
228
|
-
<li><a href="setupFixture.html">
|
241
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
229
242
|
<li><a href="suite.html">Suite</a></li>
|
230
243
|
<li><a href="teardown.html">Teardown</a></li>
|
231
244
|
<li><a href="test.html">Test</a></li>
|
232
|
-
<li><a href="
|
233
|
-
<li><a href="
|
234
|
-
<li><a href="
|
245
|
+
<li><a href="testCase.html">TestCase</a></li>
|
246
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
247
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
248
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
249
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
250
|
+
<li><a href="theory.html">Theory</a></li>
|
251
|
+
<li><a href="timeout.html">Timeout</a></li>
|
252
|
+
<li><a href="values.html">Values</a></li>
|
253
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
235
254
|
</ul>
|
236
255
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
237
256
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
238
|
-
<li><a href="
|
257
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
258
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
259
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
260
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
261
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
239
262
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
240
263
|
<li><a href="samples.html">Samples</a></li>
|
241
264
|
<li><a href="license.html">License</a></li>
|
@@ -247,7 +270,7 @@ public class SuccessTests
|
|
247
270
|
|
248
271
|
<!-- Standard Footer for NUnit.org -->
|
249
272
|
<div id="footer">
|
250
|
-
Copyright ©
|
273
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
251
274
|
</div>
|
252
275
|
<!-- End of Footer -->
|
253
276
|
|
data/docs/customConstraints.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>
|
@@ -24,19 +24,21 @@
|
|
24
24
|
|
25
25
|
<div id="content">
|
26
26
|
|
27
|
-
<h2>Custom Constraints (NUnit 2.4)</h2>
|
27
|
+
<h2>Custom Constraints (NUnit 2.4 / 2.5)</h2>
|
28
28
|
|
29
29
|
<p>You can implement your own custom constraints by creating a class that
|
30
30
|
inherits from the <b>Constraint</b> abstract class, which supports performing a
|
31
31
|
test on an actual value and generating appropriate messages. The class includes
|
32
|
-
two abstract methods, which you must override and
|
33
|
-
may be overridden as needed:
|
32
|
+
two abstract methods, which you must override and four virtual methods with
|
33
|
+
default implementation that may be overridden as needed:
|
34
34
|
|
35
35
|
<div class="code" style="width: 36em">
|
36
36
|
<pre>public abstract class Constraint
|
37
37
|
{
|
38
38
|
...
|
39
39
|
public abstract bool Matches( object actual );
|
40
|
+
public virtual bool Matches( ActualValueDelegate del );
|
41
|
+
public virtual bool Matches<T>( ref T actual );
|
40
42
|
public abstract void WriteDescriptionTo( MessageWriter writer );
|
41
43
|
public virtual void WriteMessageTo( MessageWriter writer );
|
42
44
|
public virtual void WriteActualValueTo( MessageWriter writer );
|
@@ -49,51 +51,65 @@ field actual for later use.
|
|
49
51
|
|
50
52
|
<p>The MessageWriter abstract class is implemented in the framework by
|
51
53
|
TextMessageWriter. Examining the source for some of the builtin constraints
|
52
|
-
should give you a good idea of how to use it
|
54
|
+
should give you a good idea of how to use it if you have special formatting
|
55
|
+
requirements for error messages.
|
56
|
+
|
57
|
+
<h3>Custom Constraint Syntax</h3>
|
58
|
+
|
59
|
+
<p>NUnit includes classes that implement a special constraint syntax,
|
60
|
+
allowing you to write things like...
|
61
|
+
|
62
|
+
<div class="code">
|
63
|
+
<pre>Assert.That( myArray, Is.All.InRange(1,100) );</pre>
|
64
|
+
</div>
|
65
|
+
|
66
|
+
<p>Of course, the NUnit constraint syntax will not be aware of your
|
67
|
+
custom constraint unless you modify NUnit itself. As an alternative,
|
68
|
+
you may use the <b>Matches(Constraint)</b> syntactic element in order
|
69
|
+
to write code like...
|
70
|
+
|
71
|
+
<div class="code">
|
72
|
+
<pre>MyConstraint myConstraint = new MyConstraint();
|
73
|
+
Assert.That( myArray, Has.Some.Matches(myConstraint) );</pre>
|
74
|
+
</div>
|
75
|
+
|
53
76
|
|
54
77
|
|
55
78
|
</div>
|
56
79
|
|
57
80
|
<!-- Submenu -->
|
58
81
|
<div id="subnav">
|
59
|
-
<ul>
|
60
|
-
<li><a href="index.html">NUnit 2.
|
61
|
-
<ul>
|
62
|
-
<li><a href="getStarted.html">Getting Started</a></li>
|
63
|
-
<li><a href="assertions.html">Assertions</a></li>
|
64
|
-
<
|
65
|
-
<li><a href="
|
66
|
-
<li><a href="
|
67
|
-
<
|
68
|
-
<li><a href="
|
69
|
-
<li><a href="
|
70
|
-
<li><a href="
|
71
|
-
<li><a href="
|
72
|
-
<li><a href="
|
73
|
-
<
|
74
|
-
<li><a href="
|
75
|
-
<li><a href="
|
76
|
-
<li><a href="
|
77
|
-
|
78
|
-
<li><a href="
|
79
|
-
</
|
80
|
-
</
|
81
|
-
|
82
|
-
|
83
|
-
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
84
|
-
<li><a href="features.html">Other Features</a></li>
|
85
|
-
<li><a href="releaseNotes.html">Release Notes</a></li>
|
86
|
-
<li><a href="samples.html">Samples</a></li>
|
87
|
-
<li><a href="license.html">License</a></li>
|
88
|
-
</ul>
|
89
|
-
</ul>
|
82
|
+
<ul>
|
83
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
84
|
+
<ul>
|
85
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
86
|
+
<li><a href="assertions.html">Assertions</a></li>
|
87
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
88
|
+
<li><a href="attributes.html">Attributes</a></li>
|
89
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
90
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
91
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
92
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
93
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
94
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
95
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
96
|
+
<ul>
|
97
|
+
<li id="current"><a href="customConstraints.html">Custom Constraints</a></li>
|
98
|
+
<li><a href="nunitAddins.html">NUnit Addins</a></li>
|
99
|
+
<li><a href="extensionTips.html">Tips for Extenders</a></li>
|
100
|
+
</ul>
|
101
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
102
|
+
<li><a href="samples.html">Samples</a></li>
|
103
|
+
<li><a href="license.html">License</a></li>
|
104
|
+
</ul>
|
105
|
+
</ul>
|
90
106
|
</div>
|
91
107
|
<!-- End of Submenu -->
|
92
108
|
|
93
109
|
|
94
110
|
<!-- Standard Footer for NUnit.org -->
|
95
111
|
<div id="footer">
|
96
|
-
Copyright ©
|
112
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
97
113
|
</div>
|
98
114
|
<!-- End of Footer -->
|
99
115
|
|
data/docs/datapoint.html
ADDED
@@ -0,0 +1,124 @@
|
|
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 - Datapoint</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>DatapointAttribute / DatapointsAttribute (NUnit 2.5)</h3>
|
28
|
+
|
29
|
+
<p>The <b>Datapoint</b> and <b>Datapoints</b> attributes are used
|
30
|
+
to provide data for <b>Theories</b> and are ignored for normal
|
31
|
+
parameterized tests.
|
32
|
+
|
33
|
+
<p>When a Theory is loaded, NUnit creates arguments for each
|
34
|
+
of its parameters by using any fields of the same type
|
35
|
+
as the parameter annotated with the <b>DatapointAttribute</b>.
|
36
|
+
In addition, elements of arrays of the required type
|
37
|
+
annotated with the <b>DatapointsAttribute</b> are also used.
|
38
|
+
|
39
|
+
<p><b>Note:</b> In the final release of NUnit 2.5, NUnit will
|
40
|
+
automatically supply values of <b>true</b> and <b>false</b>
|
41
|
+
for boolean arguments and will supply all possible values
|
42
|
+
of any <b>enum</b> argument. For beta-2, this is not yet
|
43
|
+
implemented.
|
44
|
+
|
45
|
+
<p>For an example of use, see <a href="theory.html">TheoryAttribute</a>.
|
46
|
+
|
47
|
+
<h4>See also...</h4>
|
48
|
+
|
49
|
+
<ul>
|
50
|
+
<li><a href="theory.html">TheoryAttribute</a><li><a href="parameterizedTests.html">Parameterized Tests</a></ul>
|
51
|
+
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<!-- Submenu -->
|
56
|
+
<div id="subnav">
|
57
|
+
<ul>
|
58
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
59
|
+
<ul>
|
60
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
61
|
+
<li><a href="assertions.html">Assertions</a></li>
|
62
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
63
|
+
<li><a href="attributes.html">Attributes</a></li>
|
64
|
+
<ul>
|
65
|
+
<li><a href="category.html">Category</a></li>
|
66
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
67
|
+
<li><a href="culture.html">Culture</a></li>
|
68
|
+
<li id="current"><a href="datapoint.html">Datapoint(s)</a></li>
|
69
|
+
<li><a href="description.html">Description</a></li>
|
70
|
+
<li><a href="exception.html">Exception</a></li>
|
71
|
+
<li><a href="explicit.html">Explicit</a></li>
|
72
|
+
<li><a href="ignore.html">Ignore</a></li>
|
73
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
74
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
75
|
+
<li><a href="platform.html">Platform</a></li>
|
76
|
+
<li><a href="property.html">Property</a></li>
|
77
|
+
<li><a href="random.html">Random</a></li>
|
78
|
+
<li><a href="range.html">Range</a></li>
|
79
|
+
<li><a href="repeat.html">Repeat</a></li>
|
80
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
81
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
82
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
83
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
84
|
+
<li><a href="sequential.html">Sequential</a></li>
|
85
|
+
<li><a href="setCulture.html">SetCulture</a></li>
|
86
|
+
<li><a href="setup.html">Setup</a></li>
|
87
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
88
|
+
<li><a href="suite.html">Suite</a></li>
|
89
|
+
<li><a href="teardown.html">Teardown</a></li>
|
90
|
+
<li><a href="test.html">Test</a></li>
|
91
|
+
<li><a href="testCase.html">TestCase</a></li>
|
92
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
93
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
94
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
95
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
96
|
+
<li><a href="theory.html">Theory</a></li>
|
97
|
+
<li><a href="timeout.html">Timeout</a></li>
|
98
|
+
<li><a href="values.html">Values</a></li>
|
99
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
100
|
+
</ul>
|
101
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
102
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
103
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
104
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
105
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
106
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
107
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
108
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
109
|
+
<li><a href="samples.html">Samples</a></li>
|
110
|
+
<li><a href="license.html">License</a></li>
|
111
|
+
</ul>
|
112
|
+
</ul>
|
113
|
+
</div>
|
114
|
+
<!-- End of Submenu -->
|
115
|
+
|
116
|
+
|
117
|
+
<!-- Standard Footer for NUnit.org -->
|
118
|
+
<div id="footer">
|
119
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
120
|
+
</div>
|
121
|
+
<!-- End of Footer -->
|
122
|
+
|
123
|
+
</body>
|
124
|
+
</html>
|