nunit 2.4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/addinsDialog.html +74 -0
- data/docs/assertions.html +91 -0
- data/docs/attributes.html +89 -0
- data/docs/category.html +265 -0
- data/docs/classicModel.html +92 -0
- data/docs/codeFuncs.js +77 -0
- data/docs/collectionAssert.html +162 -0
- data/docs/collectionConstraints.html +130 -0
- data/docs/comparisonAsserts.html +271 -0
- data/docs/comparisonConstraints.html +109 -0
- data/docs/compoundConstraints.html +97 -0
- data/docs/conditionAsserts.html +123 -0
- data/docs/conditionConstraints.html +106 -0
- data/docs/configEditor.html +93 -0
- data/docs/configFiles.html +155 -0
- data/docs/consoleCommandLine.html +271 -0
- data/docs/constraintModel.html +134 -0
- data/docs/contextMenu.html +106 -0
- data/docs/culture.html +255 -0
- data/docs/customAsserts.html +115 -0
- data/docs/customConstraints.html +101 -0
- data/docs/description.html +178 -0
- data/docs/equalConstraint.html +139 -0
- data/docs/equalityAsserts.html +187 -0
- data/docs/exception.html +296 -0
- data/docs/explicit.html +256 -0
- data/docs/extensibility.html +83 -0
- data/docs/favicon.ico +0 -0
- data/docs/features.html +75 -0
- data/docs/fileAssert.html +114 -0
- data/docs/files/QuickStart.Spanish.doc +0 -0
- data/docs/files/QuickStart.doc +0 -0
- data/docs/files/Results.xsd +70 -0
- data/docs/files/Summary.xslt +47 -0
- data/docs/files/TestResult.xml +103 -0
- data/docs/files/Thumbs.db +0 -0
- data/docs/fixtureSetup.html +201 -0
- data/docs/fixtureTeardown.html +204 -0
- data/docs/getStarted.html +80 -0
- data/docs/guiCommandLine.html +183 -0
- data/docs/identityAsserts.html +99 -0
- data/docs/ignore.html +249 -0
- data/docs/img/addinsDialog.JPG +0 -0
- data/docs/img/assembliesTab.jpg +0 -0
- data/docs/img/assemblyReloadOptions.JPG +0 -0
- data/docs/img/bulletOff.gif +0 -0
- data/docs/img/bulletOn.gif +0 -0
- data/docs/img/configEditor.jpg +0 -0
- data/docs/img/console-mock.jpg +0 -0
- data/docs/img/displayTab.jpg +0 -0
- data/docs/img/generalOptions.jpg +0 -0
- data/docs/img/generalTab.jpg +0 -0
- data/docs/img/gui-screenshot.jpg +0 -0
- data/docs/img/gui-verify.jpg +0 -0
- data/docs/img/langFilter.gif +0 -0
- data/docs/img/logo.gif +0 -0
- data/docs/img/miniGui.jpg +0 -0
- data/docs/img/optionsDialog.jpg +0 -0
- data/docs/img/resultTab.jpg +0 -0
- data/docs/img/testLoadOptions.jpg +0 -0
- data/docs/img/testOutputOptions.jpg +0 -0
- data/docs/img/testProperties.jpg +0 -0
- data/docs/img/testResultOptions.JPG +0 -0
- data/docs/img/testTab.jpg +0 -0
- data/docs/img/testsTab.JPG +0 -0
- data/docs/img/textOutputOptions.jpg +0 -0
- data/docs/img/treeDisplayOptions.JPG +0 -0
- data/docs/img/visualStudioOptions.JPG +0 -0
- data/docs/index.html +75 -0
- data/docs/installation.html +172 -0
- data/docs/license.html +88 -0
- data/docs/listMapper.html +100 -0
- data/docs/mainMenu.html +260 -0
- data/docs/multiAssembly.html +130 -0
- data/docs/nunit-console.html +84 -0
- data/docs/nunit-gui.html +115 -0
- data/docs/nunit.css +118 -0
- data/docs/nunitAddins.html +331 -0
- data/docs/optionsDialog.html +262 -0
- data/docs/platform.html +285 -0
- data/docs/platformSupport.html +99 -0
- data/docs/projectEditor.html +127 -0
- data/docs/property.html +219 -0
- data/docs/propertyConstraint.html +89 -0
- data/docs/quickStart.html +314 -0
- data/docs/releaseNotes.html +1235 -0
- data/docs/sameasConstraint.html +98 -0
- data/docs/samples.html +126 -0
- data/docs/setCulture.html +173 -0
- data/docs/setup.html +199 -0
- data/docs/setupFixture.html +198 -0
- data/docs/stringAssert.html +107 -0
- data/docs/stringConstraints.html +111 -0
- data/docs/suite.html +222 -0
- data/docs/teardown.html +204 -0
- data/docs/test.html +171 -0
- data/docs/testFixture.html +168 -0
- data/docs/testProperties.html +76 -0
- data/docs/typeAsserts.html +101 -0
- data/docs/typeConstraints.html +103 -0
- data/docs/upgrade.html +97 -0
- data/docs/utilityAsserts.html +108 -0
- data/docs/vsSupport.html +140 -0
- data/lib/net-1.1/Failure.jpg +0 -0
- data/lib/net-1.1/Ignored.jpg +0 -0
- data/lib/net-1.1/NUnitFitTests.html +277 -0
- data/lib/net-1.1/NUnitTests.config +84 -0
- data/lib/net-1.1/NUnitTests.nunit +14 -0
- data/lib/net-1.1/Success.jpg +0 -0
- data/lib/net-1.1/clr.bat +96 -0
- data/lib/net-1.1/fit.dll +0 -0
- data/lib/net-1.1/loadtest-assembly.dll +0 -0
- data/lib/net-1.1/mock-assembly.dll +0 -0
- data/lib/net-1.1/nonamespace-assembly.dll +0 -0
- data/lib/net-1.1/notestfixtures-assembly.dll +0 -0
- data/lib/net-1.1/nunit-console-runner.dll +0 -0
- data/lib/net-1.1/nunit-console.exe +0 -0
- data/lib/net-1.1/nunit-console.exe.config +117 -0
- data/lib/net-1.1/nunit-console.tests.dll +0 -0
- data/lib/net-1.1/nunit-gui-runner.dll +0 -0
- data/lib/net-1.1/nunit-gui.tests.dll +0 -0
- data/lib/net-1.1/nunit.core.dll +0 -0
- data/lib/net-1.1/nunit.core.extensions.dll +0 -0
- data/lib/net-1.1/nunit.core.interfaces.dll +0 -0
- data/lib/net-1.1/nunit.core.tests.dll +0 -0
- data/lib/net-1.1/nunit.exe +0 -0
- data/lib/net-1.1/nunit.exe.config +121 -0
- data/lib/net-1.1/nunit.extensions.tests.dll +0 -0
- data/lib/net-1.1/nunit.fixtures.dll +0 -0
- data/lib/net-1.1/nunit.fixtures.tests.dll +0 -0
- data/lib/net-1.1/nunit.framework.dll +0 -0
- data/lib/net-1.1/nunit.framework.extensions.dll +0 -0
- data/lib/net-1.1/nunit.framework.tests.dll +0 -0
- data/lib/net-1.1/nunit.framework.xml +5622 -0
- data/lib/net-1.1/nunit.mocks.dll +0 -0
- data/lib/net-1.1/nunit.mocks.tests.dll +0 -0
- data/lib/net-1.1/nunit.uikit.dll +0 -0
- data/lib/net-1.1/nunit.uikit.tests.dll +0 -0
- data/lib/net-1.1/nunit.util.dll +0 -0
- data/lib/net-1.1/nunit.util.tests.dll +0 -0
- data/lib/net-1.1/runFile.exe +0 -0
- data/lib/net-1.1/runFile.exe.config +43 -0
- data/lib/net-1.1/test-assembly.dll +0 -0
- data/lib/net-1.1/test-utilities.dll +0 -0
- data/lib/net-1.1/timing-tests.dll +0 -0
- data/lib/net-2.0/Failure.jpg +0 -0
- data/lib/net-2.0/Ignored.jpg +0 -0
- data/lib/net-2.0/NUnitFitTests.html +277 -0
- data/lib/net-2.0/NUnitTests.config +84 -0
- data/lib/net-2.0/NUnitTests.nunit +14 -0
- data/lib/net-2.0/Success.jpg +0 -0
- data/lib/net-2.0/clr.bat +96 -0
- data/lib/net-2.0/fit.dll +0 -0
- data/lib/net-2.0/loadtest-assembly.dll +0 -0
- data/lib/net-2.0/mock-assembly.dll +0 -0
- data/lib/net-2.0/nonamespace-assembly.dll +0 -0
- data/lib/net-2.0/notestfixtures-assembly.dll +0 -0
- data/lib/net-2.0/nunit-console-runner.dll +0 -0
- data/lib/net-2.0/nunit-console-x86.exe +0 -0
- data/lib/net-2.0/nunit-console-x86.exe.config +117 -0
- data/lib/net-2.0/nunit-console.exe +0 -0
- data/lib/net-2.0/nunit-console.exe.config +117 -0
- data/lib/net-2.0/nunit-console.tests.dll +0 -0
- data/lib/net-2.0/nunit-gui-runner.dll +0 -0
- data/lib/net-2.0/nunit-gui.tests.dll +0 -0
- data/lib/net-2.0/nunit-x86.exe +0 -0
- data/lib/net-2.0/nunit-x86.exe.config +121 -0
- data/lib/net-2.0/nunit.core.dll +0 -0
- data/lib/net-2.0/nunit.core.extensions.dll +0 -0
- data/lib/net-2.0/nunit.core.interfaces.dll +0 -0
- data/lib/net-2.0/nunit.core.tests.dll +0 -0
- data/lib/net-2.0/nunit.exe +0 -0
- data/lib/net-2.0/nunit.exe.config +121 -0
- data/lib/net-2.0/nunit.extensions.tests.dll +0 -0
- data/lib/net-2.0/nunit.fixtures.dll +0 -0
- data/lib/net-2.0/nunit.fixtures.tests.dll +0 -0
- data/lib/net-2.0/nunit.framework.dll +0 -0
- data/lib/net-2.0/nunit.framework.extensions.dll +0 -0
- data/lib/net-2.0/nunit.framework.tests.dll +0 -0
- data/lib/net-2.0/nunit.framework.xml +5622 -0
- data/lib/net-2.0/nunit.mocks.dll +0 -0
- data/lib/net-2.0/nunit.mocks.tests.dll +0 -0
- data/lib/net-2.0/nunit.uikit.dll +0 -0
- data/lib/net-2.0/nunit.uikit.tests.dll +0 -0
- data/lib/net-2.0/nunit.util.dll +0 -0
- data/lib/net-2.0/nunit.util.tests.dll +0 -0
- data/lib/net-2.0/runFile.exe +0 -0
- data/lib/net-2.0/runFile.exe.config +43 -0
- data/lib/net-2.0/test-assembly.dll +0 -0
- data/lib/net-2.0/test-utilities.dll +0 -0
- data/lib/net-2.0/timing-tests.dll +0 -0
- metadata +262 -0
@@ -0,0 +1,271 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - ComparisonAsserts</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Comparisons (NUnit 2.2.4)</h2>
|
28
|
+
|
29
|
+
<p>The following methods test whether one object is greater than than another.
|
30
|
+
Contrary to the normal order of Asserts, these methods are designed to be
|
31
|
+
read in the "natural" English-language or mathematical order. Thus
|
32
|
+
<b>Assert.Greater( x, y )</b> asserts that x is greater than y ( x > y ). </p>
|
33
|
+
|
34
|
+
<div class="code" style="width: 36em" >
|
35
|
+
<pre>Assert.Greater( int arg1, int arg2 );
|
36
|
+
Assert.Greater( int arg1, int arg2, string message );
|
37
|
+
Assert.Greater( int arg1, int arg2, string message,
|
38
|
+
object[] parms );
|
39
|
+
|
40
|
+
Assert.Greater( uint arg1, uint arg2 );
|
41
|
+
Assert.Greater( uint arg1, uint arg2, string message );
|
42
|
+
Assert.Greater( uint arg1, uint arg2, string message,
|
43
|
+
object[] parms );
|
44
|
+
|
45
|
+
Assert.Greater( long arg1, long arg2 );
|
46
|
+
Assert.Greater( long arg1, long arg2, string message );
|
47
|
+
Assert.Greater( long arg1, long arg2, string message,
|
48
|
+
object[] parms );
|
49
|
+
|
50
|
+
Assert.Greater( ulong arg1, ulong arg2 );
|
51
|
+
Assert.Greater( ulong arg1, ulong arg2, string message );
|
52
|
+
Assert.Greater( ulong arg1, ulong arg2, string message,
|
53
|
+
object[] parms );
|
54
|
+
|
55
|
+
Assert.Greater( decimal arg1, decimal arg2 );
|
56
|
+
Assert.Greater( decimal arg1, decimal arg2, string message );
|
57
|
+
Assert.Greater( decimal arg1, decimal arg2, string message,
|
58
|
+
object[] parms );
|
59
|
+
|
60
|
+
Assert.Greater( double arg1, double arg2 );
|
61
|
+
Assert.Greater( double arg1, double arg2, string message );
|
62
|
+
Assert.Greater( double arg1, double arg2, string message,
|
63
|
+
object[] parms );
|
64
|
+
|
65
|
+
Assert.Greater( double arg1, double arg2 );
|
66
|
+
Assert.Greater( double arg1, double arg2, string message );
|
67
|
+
Assert.Greater( double arg1, double arg2, string message,
|
68
|
+
object[] parms );
|
69
|
+
|
70
|
+
Assert.Greater( float arg1, float arg2 );
|
71
|
+
Assert.Greater( float arg1, float arg2, string message );
|
72
|
+
Assert.Greater( float arg1, float arg2, string message,
|
73
|
+
object[] parms );
|
74
|
+
|
75
|
+
Assert.Greater( IComparable arg1, IComparable arg2 );
|
76
|
+
Assert.Greater( IComparable arg1, IComparable arg2, string message );
|
77
|
+
Assert.Greater( IComparable arg1, IComparable arg2, string message,
|
78
|
+
object[] parms );</pre>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<p>The following methods test whether one object is greater than or equal to another.
|
82
|
+
Contrary to the normal order of Asserts, these methods are designed to be
|
83
|
+
read in the "natural" English-language or mathematical order. Thus
|
84
|
+
<b>Assert.GreaterOrEqual( x, y )</b> asserts that x is greater than or equal to y ( x >= y ). </p>
|
85
|
+
|
86
|
+
<div class="code" style="width: 36em" >
|
87
|
+
<pre>Assert.GreaterOrEqual( int arg1, int arg2 );
|
88
|
+
Assert.GreaterOrEqual( int arg1, int arg2, string message );
|
89
|
+
Assert.GreaterOrEqual( int arg1, int arg2, string message,
|
90
|
+
object[] parms );
|
91
|
+
|
92
|
+
Assert.GreaterOrEqual( uint arg1, uint arg2 );
|
93
|
+
Assert.GreaterOrEqual( uint arg1, uint arg2, string message );
|
94
|
+
Assert.GreaterOrEqual( uint arg1, uint arg2, string message,
|
95
|
+
object[] parms );
|
96
|
+
|
97
|
+
Assert.GreaterOrEqual( long arg1, long arg2 );
|
98
|
+
Assert.GreaterOrEqual( long arg1, long arg2, string message );
|
99
|
+
Assert.GreaterOrEqual( long arg1, long arg2, string message,
|
100
|
+
object[] parms );
|
101
|
+
|
102
|
+
Assert.GreaterOrEqual( ulong arg1, ulong arg2 );
|
103
|
+
Assert.GreaterOrEqual( ulong arg1, ulong arg2, string message );
|
104
|
+
Assert.GreaterOrEqual( ulong arg1, ulong arg2, string message,
|
105
|
+
object[] parms );
|
106
|
+
|
107
|
+
Assert.GreaterOrEqual( decimal arg1, decimal arg2 );
|
108
|
+
Assert.GreaterOrEqual( decimal arg1, decimal arg2, string message );
|
109
|
+
Assert.GreaterOrEqual( decimal arg1, decimal arg2, string message,
|
110
|
+
object[] parms );
|
111
|
+
|
112
|
+
Assert.GreaterOrEqual( double arg1, double arg2 );
|
113
|
+
Assert.GreaterOrEqual( double arg1, double arg2, string message );
|
114
|
+
Assert.GreaterOrEqual( double arg1, double arg2, string message,
|
115
|
+
object[] parms );
|
116
|
+
|
117
|
+
Assert.GreaterOrEqual( double arg1, double arg2 );
|
118
|
+
Assert.GreaterOrEqual( double arg1, double arg2, string message );
|
119
|
+
Assert.GreaterOrEqual( double arg1, double arg2, string message,
|
120
|
+
object[] parms );
|
121
|
+
|
122
|
+
Assert.GreaterOrEqual( float arg1, float arg2 );
|
123
|
+
Assert.GreaterOrEqual( float arg1, float arg2, string message );
|
124
|
+
Assert.GreaterOrEqual( float arg1, float arg2, string message,
|
125
|
+
object[] parms );
|
126
|
+
|
127
|
+
Assert.GreaterOrEqual( IComparable arg1, IComparable arg2 );
|
128
|
+
Assert.GreaterOrEqual( IComparable arg1, IComparable arg2, string message );
|
129
|
+
Assert.GreaterOrEqual( IComparable arg1, IComparable arg2, string message,
|
130
|
+
object[] parms );</pre>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
<p>The following methods test whether one object is less than than another.
|
134
|
+
Contrary to the normal order of Asserts, these methods are designed to be
|
135
|
+
read in the "natural" English-language or mathematical order. Thus
|
136
|
+
<b>Assert.Less( x, y )</b> asserts that x is less than y ( x < y ). </p>
|
137
|
+
|
138
|
+
<div class="code" style="width: 36em" >
|
139
|
+
<pre>Assert.Less( int arg1, int arg2 );
|
140
|
+
Assert.Less( int arg1, int arg2, string message );
|
141
|
+
Assert.Less( int arg1, int arg2, string message,
|
142
|
+
object[] parms );
|
143
|
+
|
144
|
+
Assert.Less( uint arg1, uint arg2 );
|
145
|
+
Assert.Less( uint arg1, uint arg2, string message );
|
146
|
+
Assert.Less( uint arg1, uint arg2, string message,
|
147
|
+
object[] parms );
|
148
|
+
|
149
|
+
Assert.Less( long arg1, long arg2 );
|
150
|
+
Assert.Less( long arg1, long arg2, string message );
|
151
|
+
Assert.Less( long arg1, long arg2, string message,
|
152
|
+
object[] parms );
|
153
|
+
|
154
|
+
Assert.Less( ulong arg1, ulong arg2 );
|
155
|
+
Assert.Less( ulong arg1, ulong arg2, string message );
|
156
|
+
Assert.Less( ulong arg1, ulong arg2, string message,
|
157
|
+
object[] parms );
|
158
|
+
|
159
|
+
Assert.Less( decimal arg1, decimal arg2 );
|
160
|
+
Assert.Less( decimal arg1, decimal arg2, string message );
|
161
|
+
Assert.Less( decimal arg1, decimal arg2, string message,
|
162
|
+
object[] parms );
|
163
|
+
|
164
|
+
Assert.Less( double arg1, double arg2 );
|
165
|
+
Assert.Less( double arg1, double arg2, string message );
|
166
|
+
Assert.Less( double arg1, double arg2, string message,
|
167
|
+
object[] parms );
|
168
|
+
|
169
|
+
Assert.Less( float arg1, float arg2 );
|
170
|
+
Assert.Less( float arg1, float arg2, string message );
|
171
|
+
Assert.Less( float arg1, float arg2, string message,
|
172
|
+
object[] parms );
|
173
|
+
|
174
|
+
Assert.Less( IComparable arg1, IComparable arg2 );
|
175
|
+
Assert.Less( IComparable arg1, IComparable arg2, string message );
|
176
|
+
Assert.Less( IComparable arg1, IComparable arg2, string message,
|
177
|
+
object[] parms );</pre>
|
178
|
+
</div>
|
179
|
+
|
180
|
+
<p>The following methods test whether one object is less than or equal to another.
|
181
|
+
Contrary to the normal order of Asserts, these methods are designed to be
|
182
|
+
read in the "natural" English-language or mathematical order. Thus
|
183
|
+
<b>Assert.LessOrEqual( x, y )</b> asserts that x is less than or equal to y ( x <= y ). </p>
|
184
|
+
|
185
|
+
<div class="code" style="width: 36em" >
|
186
|
+
<pre>Assert.LessOrEqual( int arg1, int arg2 );
|
187
|
+
Assert.LessOrEqual( int arg1, int arg2, string message );
|
188
|
+
Assert.LessOrEqual( int arg1, int arg2, string message,
|
189
|
+
object[] parms );
|
190
|
+
|
191
|
+
Assert.LessOrEqual( uint arg1, uint arg2 );
|
192
|
+
Assert.LessOrEqual( uint arg1, uint arg2, string message );
|
193
|
+
Assert.LessOrEqual( uint arg1, uint arg2, string message,
|
194
|
+
object[] parms );
|
195
|
+
|
196
|
+
Assert.LessOrEqual( long arg1, long arg2 );
|
197
|
+
Assert.LessOrEqual( long arg1, long arg2, string message );
|
198
|
+
Assert.LessOrEqual( long arg1, long arg2, string message,
|
199
|
+
object[] parms );
|
200
|
+
|
201
|
+
Assert.LessOrEqual( ulong arg1, ulong arg2 );
|
202
|
+
Assert.LessOrEqual( ulong arg1, ulong arg2, string message );
|
203
|
+
Assert.LessOrEqual( ulong arg1, ulong arg2, string message,
|
204
|
+
object[] parms );
|
205
|
+
|
206
|
+
Assert.LessOrEqual( decimal arg1, decimal arg2 );
|
207
|
+
Assert.LessOrEqual( decimal arg1, decimal arg2, string message );
|
208
|
+
Assert.LessOrEqual( decimal arg1, decimal arg2, string message,
|
209
|
+
object[] parms );
|
210
|
+
|
211
|
+
Assert.LessOrEqual( double arg1, double arg2 );
|
212
|
+
Assert.LessOrEqual( double arg1, double arg2, string message );
|
213
|
+
Assert.LessOrEqual( double arg1, double arg2, string message,
|
214
|
+
object[] parms );
|
215
|
+
|
216
|
+
Assert.LessOrEqual( float arg1, float arg2 );
|
217
|
+
Assert.LessOrEqual( float arg1, float arg2, string message );
|
218
|
+
Assert.LessOrEqual( float arg1, float arg2, string message,
|
219
|
+
object[] parms );
|
220
|
+
|
221
|
+
Assert.LessOrEqual( IComparable arg1, IComparable arg2 );
|
222
|
+
Assert.LessOrEqual( IComparable arg1, IComparable arg2, string message );
|
223
|
+
Assert.LessOrEqual( IComparable arg1, IComparable arg2, string message,
|
224
|
+
object[] parms );</pre>
|
225
|
+
</div>
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
<!-- Submenu -->
|
230
|
+
<div id="subnav">
|
231
|
+
<ul>
|
232
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
233
|
+
<ul>
|
234
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
235
|
+
<li><a href="assertions.html">Assertions</a></li>
|
236
|
+
<ul>
|
237
|
+
<li><a href="classicModel.html">Classic Model</a></li>
|
238
|
+
<ul>
|
239
|
+
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
240
|
+
<li><a href="identityAsserts.html">Identity Asserts</a></li>
|
241
|
+
<li><a href="conditionAsserts.html">Condition Tests</a></li>
|
242
|
+
<li id="current"><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
243
|
+
<li><a href="typeAsserts.html">Type Asserts</a></li>
|
244
|
+
<li><a href="utilityAsserts.html">Utility Methods</a></li>
|
245
|
+
<li><a href="stringAssert.html">String Assert</a></li>
|
246
|
+
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
247
|
+
<li><a href="fileAssert.html">File Assert</a></li>
|
248
|
+
</ul>
|
249
|
+
<li><a href="constraintModel.html">Constraint Model</a></li>
|
250
|
+
</ul>
|
251
|
+
<li><a href="attributes.html">Attributes</a></li>
|
252
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
253
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
254
|
+
<li><a href="features.html">Other Features</a></li>
|
255
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
256
|
+
<li><a href="samples.html">Samples</a></li>
|
257
|
+
<li><a href="license.html">License</a></li>
|
258
|
+
</ul>
|
259
|
+
</ul>
|
260
|
+
</div>
|
261
|
+
<!-- End of Submenu -->
|
262
|
+
|
263
|
+
|
264
|
+
<!-- Standard Footer for NUnit.org -->
|
265
|
+
<div id="footer">
|
266
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
267
|
+
</div>
|
268
|
+
<!-- End of Footer -->
|
269
|
+
|
270
|
+
</body>
|
271
|
+
</html>
|
@@ -0,0 +1,109 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - ComparisonConstraints</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Comparison Constraints (NUnit 2.4)</h2>
|
28
|
+
|
29
|
+
<p>Comparison constraints are able to test whether one value
|
30
|
+
is greater or less than another. Comparison constraints work
|
31
|
+
on numeric values, as well as other objects that implement IComparable.
|
32
|
+
|
33
|
+
<table class="constraints">
|
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>
|
42
|
+
|
43
|
+
<h4>Examples of Use</h4>
|
44
|
+
|
45
|
+
<div class="code"><pre>
|
46
|
+
Assert.That(7, Is.GreaterThan(3));
|
47
|
+
Assert.That(7, Is.GreaterThanOrEqualTo(3));
|
48
|
+
Assert.That(7, Is.AtLeast(3));
|
49
|
+
Assert.That(7, Is.GreaterThanOrEqualTo(7));
|
50
|
+
Assert.That(7, Is.AtLeast(7));
|
51
|
+
|
52
|
+
Assert.That(3, Is.LessThan(7));
|
53
|
+
Assert.That(3, Is.LessThanOrEqualTo(7));
|
54
|
+
Assert.That(3, Is.AtMost(7));
|
55
|
+
Assert.That(3, Is.LessThanOrEqualTo(3));
|
56
|
+
Assert.That(3, Is.AtMost(3));
|
57
|
+
|
58
|
+
// Using Inheritance
|
59
|
+
Expect( 7, GreaterThan(3));
|
60
|
+
Expect( 3, AtMost(7));
|
61
|
+
</pre></div>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
<!-- Submenu -->
|
66
|
+
<div id="subnav">
|
67
|
+
<ul>
|
68
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
69
|
+
<ul>
|
70
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
71
|
+
<li><a href="assertions.html">Assertions</a></li>
|
72
|
+
<ul>
|
73
|
+
<li><a href="classicModel.html">Classic Model</a></li>
|
74
|
+
<li><a href="constraintModel.html">Constraint Model</a></li>
|
75
|
+
<ul>
|
76
|
+
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
77
|
+
<li><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
78
|
+
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
79
|
+
<li id="current"><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
80
|
+
<li><a href="typeConstraints.html">Type Constraints</a></li>
|
81
|
+
<li><a href="stringConstraints.html">String Constraints</a></li>
|
82
|
+
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
83
|
+
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
84
|
+
<li><a href="compoundConstraints.html">Compound Constraints</a></li>
|
85
|
+
<li><a href="customConstraints.html">Custom Constraints</a></li>
|
86
|
+
<li><a href="listMapper.html">List Mapper</a></li>
|
87
|
+
</ul>
|
88
|
+
</ul>
|
89
|
+
<li><a href="attributes.html">Attributes</a></li>
|
90
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
91
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
92
|
+
<li><a href="features.html">Other Features</a></li>
|
93
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
94
|
+
<li><a href="samples.html">Samples</a></li>
|
95
|
+
<li><a href="license.html">License</a></li>
|
96
|
+
</ul>
|
97
|
+
</ul>
|
98
|
+
</div>
|
99
|
+
<!-- End of Submenu -->
|
100
|
+
|
101
|
+
|
102
|
+
<!-- Standard Footer for NUnit.org -->
|
103
|
+
<div id="footer">
|
104
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
105
|
+
</div>
|
106
|
+
<!-- End of Footer -->
|
107
|
+
|
108
|
+
</body>
|
109
|
+
</html>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - CompoundConstraints</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Compound Constraints (NUnit 2.4)</h2>
|
28
|
+
|
29
|
+
<p>Compound constraints are used to combine other constraints in various ways.
|
30
|
+
|
31
|
+
<table class="constraints">
|
32
|
+
<tr><th>Syntax Helper</th><th>Constructor</th><th>Operation</th></tr>
|
33
|
+
<tr><td>Is.Not...</td><td>NotConstraint( Constraint )</td><td>Negates or reverses the effect of a constraint</td></tr>
|
34
|
+
<tr><td>Is.All...</td><td>AllItemsConstraint( Constraint )</td><td>Tests that all members of a collection match the constraint</td></tr>
|
35
|
+
<tr><td>Constraint & Constraint</td><td>AndConstraint( Constraint, Constraint )</td><td>Tests that both of the constraints are met</td></tr>
|
36
|
+
<tr><td>Constraint | Constraint</td><td>OrConstraint( Constraint, Constraint )</td><td>Tests that at least one of the constraints is met</td></tr>
|
37
|
+
</table>
|
38
|
+
|
39
|
+
<h4>Examples of Use</h4>
|
40
|
+
|
41
|
+
<div class="code"><pre>
|
42
|
+
Assert.That( 2 + 2, Is.Not.EqualTo( 5 );
|
43
|
+
Assert.That( new int[] { 1, 2, 3 }, Is.All.GreaterThan( 0 ) );
|
44
|
+
Assert.That( 2.3, Is.GreaterThan( 2.0 ) & Is.LessThan( 3.0 ) );
|
45
|
+
Assert.That( 3, Is.LessThan( 5 ) | Is.GreaterThan( 10 ) );
|
46
|
+
|
47
|
+
// Using inheritance
|
48
|
+
Expect( 2 + 2, Not.EqualTo( 5 ) );
|
49
|
+
Expect( 2.3, GreaterThan( 2.0 ) & LessThan( 3.0 ) );
|
50
|
+
</pre></div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<!-- Submenu -->
|
54
|
+
<div id="subnav">
|
55
|
+
<ul>
|
56
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
57
|
+
<ul>
|
58
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
59
|
+
<li><a href="assertions.html">Assertions</a></li>
|
60
|
+
<ul>
|
61
|
+
<li><a href="classicModel.html">Classic Model</a></li>
|
62
|
+
<li><a href="constraintModel.html">Constraint Model</a></li>
|
63
|
+
<ul>
|
64
|
+
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
65
|
+
<li><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
66
|
+
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
67
|
+
<li><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
68
|
+
<li><a href="typeConstraints.html">Type Constraints</a></li>
|
69
|
+
<li><a href="stringConstraints.html">String Constraints</a></li>
|
70
|
+
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
71
|
+
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
72
|
+
<li id="current"><a href="compoundConstraints.html">Compound Constraints</a></li>
|
73
|
+
<li><a href="customConstraints.html">Custom Constraints</a></li>
|
74
|
+
<li><a href="listMapper.html">List Mapper</a></li>
|
75
|
+
</ul>
|
76
|
+
</ul>
|
77
|
+
<li><a href="attributes.html">Attributes</a></li>
|
78
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
79
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
80
|
+
<li><a href="features.html">Other Features</a></li>
|
81
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
82
|
+
<li><a href="samples.html">Samples</a></li>
|
83
|
+
<li><a href="license.html">License</a></li>
|
84
|
+
</ul>
|
85
|
+
</ul>
|
86
|
+
</div>
|
87
|
+
<!-- End of Submenu -->
|
88
|
+
|
89
|
+
|
90
|
+
<!-- Standard Footer for NUnit.org -->
|
91
|
+
<div id="footer">
|
92
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
93
|
+
</div>
|
94
|
+
<!-- End of Footer -->
|
95
|
+
|
96
|
+
</body>
|
97
|
+
</html>
|