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,130 @@
|
|
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 - Combinatorial</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>CombinatorialAttribute (NUnit 2.5)</h3>
|
28
|
+
|
29
|
+
<p>The <b>CombinatorialAttribute</b> is used on a test to specify that NUnit should
|
30
|
+
generate test cases for all possible combinations of the individual
|
31
|
+
data items provided for the parameters of a test. Since this is the
|
32
|
+
default, use of this attribute is optional.
|
33
|
+
|
34
|
+
<h4>Example</h4>
|
35
|
+
|
36
|
+
<p>The following test will be executed six times, as follows:
|
37
|
+
<pre>
|
38
|
+
MyTest(1, "A")
|
39
|
+
MyTest(1, "B")
|
40
|
+
MyTest(2, "A")
|
41
|
+
MyTest(2, "B")
|
42
|
+
MyTest(3, "A")
|
43
|
+
MyTest(3, "B")
|
44
|
+
</pre>
|
45
|
+
<div class="code"><pre>
|
46
|
+
[Test, Combinatorial]
|
47
|
+
public void MyTest(
|
48
|
+
[Values(1,2,3) int x,
|
49
|
+
[Values("A","B"] string s)
|
50
|
+
{
|
51
|
+
...
|
52
|
+
}
|
53
|
+
</pre></div>
|
54
|
+
|
55
|
+
<h4>See also...</h4>
|
56
|
+
<ul>
|
57
|
+
<li><a href="sequential.html">SequentialAttribute</a><li><a href="pairwise.html">PairwiseAttribute</a></ul>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
<!-- Submenu -->
|
62
|
+
<div id="subnav">
|
63
|
+
<ul>
|
64
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
65
|
+
<ul>
|
66
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
67
|
+
<li><a href="assertions.html">Assertions</a></li>
|
68
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
69
|
+
<li><a href="attributes.html">Attributes</a></li>
|
70
|
+
<ul>
|
71
|
+
<li><a href="category.html">Category</a></li>
|
72
|
+
<li id="current"><a href="combinatorial.html">Combinatorial</a></li>
|
73
|
+
<li><a href="culture.html">Culture</a></li>
|
74
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
75
|
+
<li><a href="description.html">Description</a></li>
|
76
|
+
<li><a href="exception.html">Exception</a></li>
|
77
|
+
<li><a href="explicit.html">Explicit</a></li>
|
78
|
+
<li><a href="ignore.html">Ignore</a></li>
|
79
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
80
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
81
|
+
<li><a href="platform.html">Platform</a></li>
|
82
|
+
<li><a href="property.html">Property</a></li>
|
83
|
+
<li><a href="random.html">Random</a></li>
|
84
|
+
<li><a href="range.html">Range</a></li>
|
85
|
+
<li><a href="repeat.html">Repeat</a></li>
|
86
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
87
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
88
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
89
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
90
|
+
<li><a href="sequential.html">Sequential</a></li>
|
91
|
+
<li><a href="setCulture.html">SetCulture</a></li>
|
92
|
+
<li><a href="setup.html">Setup</a></li>
|
93
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
94
|
+
<li><a href="suite.html">Suite</a></li>
|
95
|
+
<li><a href="teardown.html">Teardown</a></li>
|
96
|
+
<li><a href="test.html">Test</a></li>
|
97
|
+
<li><a href="testCase.html">TestCase</a></li>
|
98
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
99
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
100
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
101
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
102
|
+
<li><a href="theory.html">Theory</a></li>
|
103
|
+
<li><a href="timeout.html">Timeout</a></li>
|
104
|
+
<li><a href="values.html">Values</a></li>
|
105
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
106
|
+
</ul>
|
107
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
108
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
109
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
110
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
111
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
112
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
113
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
114
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
115
|
+
<li><a href="samples.html">Samples</a></li>
|
116
|
+
<li><a href="license.html">License</a></li>
|
117
|
+
</ul>
|
118
|
+
</ul>
|
119
|
+
</div>
|
120
|
+
<!-- End of Submenu -->
|
121
|
+
|
122
|
+
|
123
|
+
<!-- Standard Footer for NUnit.org -->
|
124
|
+
<div id="footer">
|
125
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
126
|
+
</div>
|
127
|
+
<!-- End of Footer -->
|
128
|
+
|
129
|
+
</body>
|
130
|
+
</html>
|
data/docs/comparisonAsserts.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>
|
@@ -229,29 +229,32 @@ Assert.LessOrEqual( IComparable arg1, IComparable arg2, string message,
|
|
229
229
|
<!-- Submenu -->
|
230
230
|
<div id="subnav">
|
231
231
|
<ul>
|
232
|
-
<li><a href="index.html">NUnit 2.
|
232
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
233
233
|
<ul>
|
234
234
|
<li><a href="getStarted.html">Getting Started</a></li>
|
235
235
|
<li><a href="assertions.html">Assertions</a></li>
|
236
236
|
<ul>
|
237
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
238
|
-
<ul>
|
239
237
|
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
240
238
|
<li><a href="identityAsserts.html">Identity Asserts</a></li>
|
241
|
-
<li><a href="conditionAsserts.html">Condition
|
239
|
+
<li><a href="conditionAsserts.html">Condition Asserts</a></li>
|
242
240
|
<li id="current"><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
243
241
|
<li><a href="typeAsserts.html">Type Asserts</a></li>
|
242
|
+
<li><a href="exceptionAsserts.html">Exception Asserts</a></li>
|
244
243
|
<li><a href="utilityAsserts.html">Utility Methods</a></li>
|
245
244
|
<li><a href="stringAssert.html">String Assert</a></li>
|
246
245
|
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
247
246
|
<li><a href="fileAssert.html">File Assert</a></li>
|
247
|
+
<li><a href="directoryAssert.html">Directory Assert</a></li>
|
248
248
|
</ul>
|
249
|
-
<li><a href="constraintModel.html">
|
250
|
-
</ul>
|
249
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
251
250
|
<li><a href="attributes.html">Attributes</a></li>
|
252
251
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
253
252
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
254
|
-
<li><a href="
|
253
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
254
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
255
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
256
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
257
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
255
258
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
256
259
|
<li><a href="samples.html">Samples</a></li>
|
257
260
|
<li><a href="license.html">License</a></li>
|
@@ -263,7 +266,7 @@ Assert.LessOrEqual( IComparable arg1, IComparable arg2, string message,
|
|
263
266
|
|
264
267
|
<!-- Standard Footer for NUnit.org -->
|
265
268
|
<div id="footer">
|
266
|
-
Copyright ©
|
269
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
267
270
|
</div>
|
268
271
|
<!-- End of Footer -->
|
269
272
|
|
@@ -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,40 +24,171 @@
|
|
24
24
|
|
25
25
|
<div id="content">
|
26
26
|
|
27
|
-
<h2>Comparison Constraints (NUnit 2.4)</h2>
|
27
|
+
<h2>Comparison Constraints (NUnit 2.4 / 2.5)</h2>
|
28
28
|
|
29
29
|
<p>Comparison constraints are able to test whether one value
|
30
30
|
is greater or less than another. Comparison constraints work
|
31
|
-
on numeric values, as well as other objects that implement
|
32
|
-
|
33
|
-
<
|
34
|
-
<tr><th>Syntax Helper</th><th>Constructor</th><th>Operation</th></tr>
|
35
|
-
<tr><td>Is.GreaterThan( IComparable )</td><td>GreaterThanConstraint( IComparable )</td></td><td>tests that one value is greater than another</td></tr>
|
36
|
-
<tr><td>Is.GreaterThanOrEqualTo( IComparable )</td><td>GreaterThanOrEqualConstraint( IComparable )</td></td><td>tests that one value is greater than or equal to another</td></tr>
|
37
|
-
<tr><td>Is.AtLeast( IComparable )</td><td>GreaterThanOrEqualConstraint( IComparable )</td></td><td>tests that one value is greater than or equal to another</td></tr>
|
38
|
-
<tr><td>Is.LessThan( IComparable )</td><td>LessThanConstraint( IComparable )</td></td><td>tests that one value is less than another</td></tr>
|
39
|
-
<tr><td>Is.LessThanOrEqualTo( IComparable )</td><td>LessThanOrEqualConstraint( IComparable )</td></td><td>tests that one value is less than or equal to another</td></tr>
|
40
|
-
<tr><td>Is.AtMost( IComparable )</td><td>LessThanOrEqualConstraint( IComparable )</td></td><td>tests that one value is less than or equal to another</td></tr>
|
41
|
-
</table>
|
31
|
+
on numeric values, as well as other objects that implement the
|
32
|
+
<b>IComparable</b> interface or - beginning with NUnit 2.5 -
|
33
|
+
<b>IComparable<T></b>.
|
42
34
|
|
43
|
-
<
|
35
|
+
<p>Beginning with NUnit 2.5, you may supply your own comparison
|
36
|
+
algorithm through the <b>Using</b> modifier.
|
37
|
+
|
38
|
+
<h3>GreaterThanConstraint</h3>
|
39
|
+
|
40
|
+
<h4>Action</h4>
|
41
|
+
<p>Tests that one value is greater than another.
|
42
|
+
|
43
|
+
<h4>Constructor</h4>
|
44
|
+
<div class="code"><pre>
|
45
|
+
GreaterThanConstraint(object expected)
|
46
|
+
</pre></div>
|
44
47
|
|
48
|
+
<h4>Syntax</h4>
|
49
|
+
<div class="code"><pre>
|
50
|
+
Is.GreaterThan(object expected)
|
51
|
+
</pre></div>
|
52
|
+
|
53
|
+
<h4>Modifiers</h4>
|
54
|
+
<div class="code"><pre>
|
55
|
+
...Using(IComparer comparer)
|
56
|
+
...Using<T>(IComparer<T> comparer)
|
57
|
+
...Using<T>(Comparison<T> comparer)
|
58
|
+
</pre></div>
|
59
|
+
|
60
|
+
<h4>Examples of Use</h4>
|
45
61
|
<div class="code"><pre>
|
46
62
|
Assert.That(7, Is.GreaterThan(3));
|
63
|
+
Assert.That(myOwnObject,
|
64
|
+
Is.GreaterThan(theExpected).Using(myComparer));
|
65
|
+
</pre></div>
|
66
|
+
|
67
|
+
<h3>GreaterThanOrEqualConstraint</h3>
|
68
|
+
|
69
|
+
<h4>Action</h4>
|
70
|
+
<p>Tests that one value is greater than or equal to another.
|
71
|
+
|
72
|
+
<h4>Constructor</h4>
|
73
|
+
<div class="code"><pre>
|
74
|
+
GreaterThanOrEqualConstraint(object expected)
|
75
|
+
</pre></div>
|
76
|
+
|
77
|
+
<h4>Syntax</h4>
|
78
|
+
<div class="code"><pre>
|
79
|
+
Is.GreaterThanOrEqualTo(object expected)
|
80
|
+
Is.AtLeast(object expected)
|
81
|
+
</pre></div>
|
82
|
+
|
83
|
+
<h4>Modifiers</h4>
|
84
|
+
<div class="code"><pre>
|
85
|
+
...Using(IComparer comparer)
|
86
|
+
...Using<T>(IComparer<T> comparer)
|
87
|
+
...Using<T>(Comparison<T> comparer)
|
88
|
+
</pre></div>
|
89
|
+
|
90
|
+
<h4>Examples of Use</h4>
|
91
|
+
<div class="code"><pre>
|
47
92
|
Assert.That(7, Is.GreaterThanOrEqualTo(3));
|
48
93
|
Assert.That(7, Is.AtLeast(3));
|
49
94
|
Assert.That(7, Is.GreaterThanOrEqualTo(7));
|
50
95
|
Assert.That(7, Is.AtLeast(7));
|
96
|
+
Assert.That(myOwnObject,
|
97
|
+
Is.GreaterThanOrEqualTo(theExpected).Using(myComparer));
|
98
|
+
</pre></div>
|
99
|
+
|
100
|
+
<h3>LessThanConstraint</h3>
|
101
|
+
|
102
|
+
<h4>Action</h4>
|
103
|
+
<p>Tests that one value is less than another.
|
104
|
+
|
105
|
+
<h4>Constructor</h4>
|
106
|
+
<div class="code"><pre>
|
107
|
+
LessThanConstraint(object expected)
|
108
|
+
</pre></div>
|
109
|
+
|
110
|
+
<h4>Syntax</h4>
|
111
|
+
<div class="code"><pre>
|
112
|
+
Is.LessThan(object expected)
|
113
|
+
</pre></div>
|
51
114
|
|
115
|
+
<h4>Modifiers</h4>
|
116
|
+
<div class="code"><pre>
|
117
|
+
...Using(IComparer comparer)
|
118
|
+
...Using<T>(IComparer<T> comparer)
|
119
|
+
...Using<T>(Comparison<T> comparer)
|
120
|
+
</pre></div>
|
121
|
+
|
122
|
+
<h4>Examples of Use</h4>
|
123
|
+
<div class="code"><pre>
|
52
124
|
Assert.That(3, Is.LessThan(7));
|
125
|
+
Assert.That(myOwnObject,
|
126
|
+
Is.LessThan(theExpected).Using(myComparer));
|
127
|
+
</pre></div>
|
128
|
+
|
129
|
+
<h3>LessThanOrEqualConstraint</h3>
|
130
|
+
|
131
|
+
<h4>Action</h4>
|
132
|
+
<p>Tests that one value is less than or equal to another.
|
133
|
+
|
134
|
+
<h4>Constructor</h4>
|
135
|
+
<div class="code"><pre>
|
136
|
+
LessThanOrEqualConstraint(object expected)
|
137
|
+
</pre></div>
|
138
|
+
|
139
|
+
<h4>Syntax</h4>
|
140
|
+
<div class="code"><pre>
|
141
|
+
Is.LessThanOrEqualTo(object expected)
|
142
|
+
Is.AtMost(object expected)
|
143
|
+
</pre></div>
|
144
|
+
|
145
|
+
<h4>Modifiers</h4>
|
146
|
+
<div class="code"><pre>
|
147
|
+
...Using(IComparer comparer)
|
148
|
+
...Using<T>(IComparer<T> comparer)
|
149
|
+
...Using<T>(Comparison<T> comparer)
|
150
|
+
</pre></div>
|
151
|
+
|
152
|
+
<h4>Examples of Use</h4>
|
153
|
+
<div class="code"><pre>
|
53
154
|
Assert.That(3, Is.LessThanOrEqualTo(7));
|
54
155
|
Assert.That(3, Is.AtMost(7));
|
55
156
|
Assert.That(3, Is.LessThanOrEqualTo(3));
|
56
157
|
Assert.That(3, Is.AtMost(3));
|
158
|
+
Assert.That(myOwnObject,
|
159
|
+
Is.LessThanOrEqualTo(theExpected).Using(myComparer));
|
160
|
+
</pre></div>
|
161
|
+
|
162
|
+
<h3>RangeConstraint</h3>
|
163
|
+
|
164
|
+
<h4>Action</h4>
|
165
|
+
<p>
|
166
|
+
|
167
|
+
<h4>Constructor</h4>
|
168
|
+
<div class="code"><pre>
|
169
|
+
RangeConstraint(IComparable from, IComparable to)
|
170
|
+
</pre></div>
|
171
|
+
|
172
|
+
<h4>Syntax</h4>
|
173
|
+
<div class="code"><pre>
|
174
|
+
Is.InRange(IComparable from, IComparable to)
|
175
|
+
</pre></div>
|
57
176
|
|
58
|
-
|
59
|
-
|
60
|
-
|
177
|
+
<h4>Modifiers</h4>
|
178
|
+
<div class="code"><pre>
|
179
|
+
...Using(IComparer comparer)
|
180
|
+
...Using<T>(IComparer<T> comparer)
|
181
|
+
...Using<T>(Comparison<T> comparer)
|
182
|
+
</pre></div>
|
183
|
+
|
184
|
+
<h4>Examples of Use</h4>
|
185
|
+
<div class="code"><pre>
|
186
|
+
int[] iarray = new int[] { 1, 2, 3 }
|
187
|
+
|
188
|
+
Assert.That( 42, Is.InRange(1, 100) );
|
189
|
+
Assert.That( iarray, Is.All.InRange(1, 3) );
|
190
|
+
Assert.That(myOwnObject,
|
191
|
+
Is.InRange(lowExpected, highExpected).Using(myComparer));
|
61
192
|
</pre></div>
|
62
193
|
|
63
194
|
</div>
|
@@ -65,31 +196,34 @@ Expect( 3, AtMost(7));
|
|
65
196
|
<!-- Submenu -->
|
66
197
|
<div id="subnav">
|
67
198
|
<ul>
|
68
|
-
<li><a href="index.html">NUnit 2.
|
199
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
69
200
|
<ul>
|
70
201
|
<li><a href="getStarted.html">Getting Started</a></li>
|
71
202
|
<li><a href="assertions.html">Assertions</a></li>
|
72
|
-
<
|
73
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
74
|
-
<li><a href="constraintModel.html">Constraint Model</a></li>
|
203
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
75
204
|
<ul>
|
76
205
|
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
77
206
|
<li><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
78
207
|
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
79
208
|
<li id="current"><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
209
|
+
<li><a href="pathConstraints.html">Path Constraints</a></li>
|
80
210
|
<li><a href="typeConstraints.html">Type Constraints</a></li>
|
81
211
|
<li><a href="stringConstraints.html">String Constraints</a></li>
|
82
212
|
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
83
213
|
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
214
|
+
<li><a href="throwsConstraint.html">Throws Constraint</a></li>
|
84
215
|
<li><a href="compoundConstraints.html">Compound Constraints</a></li>
|
85
|
-
<li><a href="
|
216
|
+
<li><a href="delayedConstraint.html">Delayed Constraint</a></li>
|
86
217
|
<li><a href="listMapper.html">List Mapper</a></li>
|
87
218
|
</ul>
|
88
|
-
</ul>
|
89
219
|
<li><a href="attributes.html">Attributes</a></li>
|
90
220
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
91
221
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
92
|
-
<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>
|
93
227
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
94
228
|
<li><a href="samples.html">Samples</a></li>
|
95
229
|
<li><a href="license.html">License</a></li>
|
@@ -101,7 +235,7 @@ Expect( 3, AtMost(7));
|
|
101
235
|
|
102
236
|
<!-- Standard Footer for NUnit.org -->
|
103
237
|
<div id="footer">
|
104
|
-
Copyright ©
|
238
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
105
239
|
</div>
|
106
240
|
<!-- End of Footer -->
|
107
241
|
|
@@ -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>
|
@@ -53,31 +53,34 @@ Expect( 2.3, GreaterThan( 2.0 ) & LessThan( 3.0 ) );
|
|
53
53
|
<!-- Submenu -->
|
54
54
|
<div id="subnav">
|
55
55
|
<ul>
|
56
|
-
<li><a href="index.html">NUnit 2.
|
56
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
57
57
|
<ul>
|
58
58
|
<li><a href="getStarted.html">Getting Started</a></li>
|
59
59
|
<li><a href="assertions.html">Assertions</a></li>
|
60
|
-
<
|
61
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
62
|
-
<li><a href="constraintModel.html">Constraint Model</a></li>
|
60
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
63
61
|
<ul>
|
64
62
|
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
65
63
|
<li><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
66
64
|
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
67
65
|
<li><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
66
|
+
<li><a href="pathConstraints.html">Path Constraints</a></li>
|
68
67
|
<li><a href="typeConstraints.html">Type Constraints</a></li>
|
69
68
|
<li><a href="stringConstraints.html">String Constraints</a></li>
|
70
69
|
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
71
70
|
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
71
|
+
<li><a href="throwsConstraint.html">Throws Constraint</a></li>
|
72
72
|
<li id="current"><a href="compoundConstraints.html">Compound Constraints</a></li>
|
73
|
-
<li><a href="
|
73
|
+
<li><a href="delayedConstraint.html">Delayed Constraint</a></li>
|
74
74
|
<li><a href="listMapper.html">List Mapper</a></li>
|
75
75
|
</ul>
|
76
|
-
</ul>
|
77
76
|
<li><a href="attributes.html">Attributes</a></li>
|
78
77
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
79
78
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
80
|
-
<li><a href="
|
79
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
80
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
81
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
82
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
83
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
81
84
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
82
85
|
<li><a href="samples.html">Samples</a></li>
|
83
86
|
<li><a href="license.html">License</a></li>
|
@@ -89,7 +92,7 @@ Expect( 2.3, GreaterThan( 2.0 ) & LessThan( 3.0 ) );
|
|
89
92
|
|
90
93
|
<!-- Standard Footer for NUnit.org -->
|
91
94
|
<div id="footer">
|
92
|
-
Copyright ©
|
95
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
93
96
|
</div>
|
94
97
|
<!-- End of Footer -->
|
95
98
|
|