nunit 2.4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. data/docs/addinsDialog.html +74 -0
  2. data/docs/assertions.html +91 -0
  3. data/docs/attributes.html +89 -0
  4. data/docs/category.html +265 -0
  5. data/docs/classicModel.html +92 -0
  6. data/docs/codeFuncs.js +77 -0
  7. data/docs/collectionAssert.html +162 -0
  8. data/docs/collectionConstraints.html +130 -0
  9. data/docs/comparisonAsserts.html +271 -0
  10. data/docs/comparisonConstraints.html +109 -0
  11. data/docs/compoundConstraints.html +97 -0
  12. data/docs/conditionAsserts.html +123 -0
  13. data/docs/conditionConstraints.html +106 -0
  14. data/docs/configEditor.html +93 -0
  15. data/docs/configFiles.html +155 -0
  16. data/docs/consoleCommandLine.html +271 -0
  17. data/docs/constraintModel.html +134 -0
  18. data/docs/contextMenu.html +106 -0
  19. data/docs/culture.html +255 -0
  20. data/docs/customAsserts.html +115 -0
  21. data/docs/customConstraints.html +101 -0
  22. data/docs/description.html +178 -0
  23. data/docs/equalConstraint.html +139 -0
  24. data/docs/equalityAsserts.html +187 -0
  25. data/docs/exception.html +296 -0
  26. data/docs/explicit.html +256 -0
  27. data/docs/extensibility.html +83 -0
  28. data/docs/favicon.ico +0 -0
  29. data/docs/features.html +75 -0
  30. data/docs/fileAssert.html +114 -0
  31. data/docs/files/QuickStart.Spanish.doc +0 -0
  32. data/docs/files/QuickStart.doc +0 -0
  33. data/docs/files/Results.xsd +70 -0
  34. data/docs/files/Summary.xslt +47 -0
  35. data/docs/files/TestResult.xml +103 -0
  36. data/docs/files/Thumbs.db +0 -0
  37. data/docs/fixtureSetup.html +201 -0
  38. data/docs/fixtureTeardown.html +204 -0
  39. data/docs/getStarted.html +80 -0
  40. data/docs/guiCommandLine.html +183 -0
  41. data/docs/identityAsserts.html +99 -0
  42. data/docs/ignore.html +249 -0
  43. data/docs/img/addinsDialog.JPG +0 -0
  44. data/docs/img/assembliesTab.jpg +0 -0
  45. data/docs/img/assemblyReloadOptions.JPG +0 -0
  46. data/docs/img/bulletOff.gif +0 -0
  47. data/docs/img/bulletOn.gif +0 -0
  48. data/docs/img/configEditor.jpg +0 -0
  49. data/docs/img/console-mock.jpg +0 -0
  50. data/docs/img/displayTab.jpg +0 -0
  51. data/docs/img/generalOptions.jpg +0 -0
  52. data/docs/img/generalTab.jpg +0 -0
  53. data/docs/img/gui-screenshot.jpg +0 -0
  54. data/docs/img/gui-verify.jpg +0 -0
  55. data/docs/img/langFilter.gif +0 -0
  56. data/docs/img/logo.gif +0 -0
  57. data/docs/img/miniGui.jpg +0 -0
  58. data/docs/img/optionsDialog.jpg +0 -0
  59. data/docs/img/resultTab.jpg +0 -0
  60. data/docs/img/testLoadOptions.jpg +0 -0
  61. data/docs/img/testOutputOptions.jpg +0 -0
  62. data/docs/img/testProperties.jpg +0 -0
  63. data/docs/img/testResultOptions.JPG +0 -0
  64. data/docs/img/testTab.jpg +0 -0
  65. data/docs/img/testsTab.JPG +0 -0
  66. data/docs/img/textOutputOptions.jpg +0 -0
  67. data/docs/img/treeDisplayOptions.JPG +0 -0
  68. data/docs/img/visualStudioOptions.JPG +0 -0
  69. data/docs/index.html +75 -0
  70. data/docs/installation.html +172 -0
  71. data/docs/license.html +88 -0
  72. data/docs/listMapper.html +100 -0
  73. data/docs/mainMenu.html +260 -0
  74. data/docs/multiAssembly.html +130 -0
  75. data/docs/nunit-console.html +84 -0
  76. data/docs/nunit-gui.html +115 -0
  77. data/docs/nunit.css +118 -0
  78. data/docs/nunitAddins.html +331 -0
  79. data/docs/optionsDialog.html +262 -0
  80. data/docs/platform.html +285 -0
  81. data/docs/platformSupport.html +99 -0
  82. data/docs/projectEditor.html +127 -0
  83. data/docs/property.html +219 -0
  84. data/docs/propertyConstraint.html +89 -0
  85. data/docs/quickStart.html +314 -0
  86. data/docs/releaseNotes.html +1235 -0
  87. data/docs/sameasConstraint.html +98 -0
  88. data/docs/samples.html +126 -0
  89. data/docs/setCulture.html +173 -0
  90. data/docs/setup.html +199 -0
  91. data/docs/setupFixture.html +198 -0
  92. data/docs/stringAssert.html +107 -0
  93. data/docs/stringConstraints.html +111 -0
  94. data/docs/suite.html +222 -0
  95. data/docs/teardown.html +204 -0
  96. data/docs/test.html +171 -0
  97. data/docs/testFixture.html +168 -0
  98. data/docs/testProperties.html +76 -0
  99. data/docs/typeAsserts.html +101 -0
  100. data/docs/typeConstraints.html +103 -0
  101. data/docs/upgrade.html +97 -0
  102. data/docs/utilityAsserts.html +108 -0
  103. data/docs/vsSupport.html +140 -0
  104. data/lib/net-1.1/Failure.jpg +0 -0
  105. data/lib/net-1.1/Ignored.jpg +0 -0
  106. data/lib/net-1.1/NUnitFitTests.html +277 -0
  107. data/lib/net-1.1/NUnitTests.config +84 -0
  108. data/lib/net-1.1/NUnitTests.nunit +14 -0
  109. data/lib/net-1.1/Success.jpg +0 -0
  110. data/lib/net-1.1/clr.bat +96 -0
  111. data/lib/net-1.1/fit.dll +0 -0
  112. data/lib/net-1.1/loadtest-assembly.dll +0 -0
  113. data/lib/net-1.1/mock-assembly.dll +0 -0
  114. data/lib/net-1.1/nonamespace-assembly.dll +0 -0
  115. data/lib/net-1.1/notestfixtures-assembly.dll +0 -0
  116. data/lib/net-1.1/nunit-console-runner.dll +0 -0
  117. data/lib/net-1.1/nunit-console.exe +0 -0
  118. data/lib/net-1.1/nunit-console.exe.config +117 -0
  119. data/lib/net-1.1/nunit-console.tests.dll +0 -0
  120. data/lib/net-1.1/nunit-gui-runner.dll +0 -0
  121. data/lib/net-1.1/nunit-gui.tests.dll +0 -0
  122. data/lib/net-1.1/nunit.core.dll +0 -0
  123. data/lib/net-1.1/nunit.core.extensions.dll +0 -0
  124. data/lib/net-1.1/nunit.core.interfaces.dll +0 -0
  125. data/lib/net-1.1/nunit.core.tests.dll +0 -0
  126. data/lib/net-1.1/nunit.exe +0 -0
  127. data/lib/net-1.1/nunit.exe.config +121 -0
  128. data/lib/net-1.1/nunit.extensions.tests.dll +0 -0
  129. data/lib/net-1.1/nunit.fixtures.dll +0 -0
  130. data/lib/net-1.1/nunit.fixtures.tests.dll +0 -0
  131. data/lib/net-1.1/nunit.framework.dll +0 -0
  132. data/lib/net-1.1/nunit.framework.extensions.dll +0 -0
  133. data/lib/net-1.1/nunit.framework.tests.dll +0 -0
  134. data/lib/net-1.1/nunit.framework.xml +5622 -0
  135. data/lib/net-1.1/nunit.mocks.dll +0 -0
  136. data/lib/net-1.1/nunit.mocks.tests.dll +0 -0
  137. data/lib/net-1.1/nunit.uikit.dll +0 -0
  138. data/lib/net-1.1/nunit.uikit.tests.dll +0 -0
  139. data/lib/net-1.1/nunit.util.dll +0 -0
  140. data/lib/net-1.1/nunit.util.tests.dll +0 -0
  141. data/lib/net-1.1/runFile.exe +0 -0
  142. data/lib/net-1.1/runFile.exe.config +43 -0
  143. data/lib/net-1.1/test-assembly.dll +0 -0
  144. data/lib/net-1.1/test-utilities.dll +0 -0
  145. data/lib/net-1.1/timing-tests.dll +0 -0
  146. data/lib/net-2.0/Failure.jpg +0 -0
  147. data/lib/net-2.0/Ignored.jpg +0 -0
  148. data/lib/net-2.0/NUnitFitTests.html +277 -0
  149. data/lib/net-2.0/NUnitTests.config +84 -0
  150. data/lib/net-2.0/NUnitTests.nunit +14 -0
  151. data/lib/net-2.0/Success.jpg +0 -0
  152. data/lib/net-2.0/clr.bat +96 -0
  153. data/lib/net-2.0/fit.dll +0 -0
  154. data/lib/net-2.0/loadtest-assembly.dll +0 -0
  155. data/lib/net-2.0/mock-assembly.dll +0 -0
  156. data/lib/net-2.0/nonamespace-assembly.dll +0 -0
  157. data/lib/net-2.0/notestfixtures-assembly.dll +0 -0
  158. data/lib/net-2.0/nunit-console-runner.dll +0 -0
  159. data/lib/net-2.0/nunit-console-x86.exe +0 -0
  160. data/lib/net-2.0/nunit-console-x86.exe.config +117 -0
  161. data/lib/net-2.0/nunit-console.exe +0 -0
  162. data/lib/net-2.0/nunit-console.exe.config +117 -0
  163. data/lib/net-2.0/nunit-console.tests.dll +0 -0
  164. data/lib/net-2.0/nunit-gui-runner.dll +0 -0
  165. data/lib/net-2.0/nunit-gui.tests.dll +0 -0
  166. data/lib/net-2.0/nunit-x86.exe +0 -0
  167. data/lib/net-2.0/nunit-x86.exe.config +121 -0
  168. data/lib/net-2.0/nunit.core.dll +0 -0
  169. data/lib/net-2.0/nunit.core.extensions.dll +0 -0
  170. data/lib/net-2.0/nunit.core.interfaces.dll +0 -0
  171. data/lib/net-2.0/nunit.core.tests.dll +0 -0
  172. data/lib/net-2.0/nunit.exe +0 -0
  173. data/lib/net-2.0/nunit.exe.config +121 -0
  174. data/lib/net-2.0/nunit.extensions.tests.dll +0 -0
  175. data/lib/net-2.0/nunit.fixtures.dll +0 -0
  176. data/lib/net-2.0/nunit.fixtures.tests.dll +0 -0
  177. data/lib/net-2.0/nunit.framework.dll +0 -0
  178. data/lib/net-2.0/nunit.framework.extensions.dll +0 -0
  179. data/lib/net-2.0/nunit.framework.tests.dll +0 -0
  180. data/lib/net-2.0/nunit.framework.xml +5622 -0
  181. data/lib/net-2.0/nunit.mocks.dll +0 -0
  182. data/lib/net-2.0/nunit.mocks.tests.dll +0 -0
  183. data/lib/net-2.0/nunit.uikit.dll +0 -0
  184. data/lib/net-2.0/nunit.uikit.tests.dll +0 -0
  185. data/lib/net-2.0/nunit.util.dll +0 -0
  186. data/lib/net-2.0/nunit.util.tests.dll +0 -0
  187. data/lib/net-2.0/runFile.exe +0 -0
  188. data/lib/net-2.0/runFile.exe.config +43 -0
  189. data/lib/net-2.0/test-assembly.dll +0 -0
  190. data/lib/net-2.0/test-utilities.dll +0 -0
  191. data/lib/net-2.0/timing-tests.dll +0 -0
  192. 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 &gt; 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 &gt;= 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 &lt; 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 &lt;= 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&nbsp;Started</a></li>
235
+ <li><a href="assertions.html">Assertions</a></li>
236
+ <ul>
237
+ <li><a href="classicModel.html">Classic&nbsp;Model</a></li>
238
+ <ul>
239
+ <li><a href="equalityAsserts.html">Equality&nbsp;Asserts</a></li>
240
+ <li><a href="identityAsserts.html">Identity&nbsp;Asserts</a></li>
241
+ <li><a href="conditionAsserts.html">Condition&nbsp;Tests</a></li>
242
+ <li id="current"><a href="comparisonAsserts.html">Comparison&nbsp;Asserts</a></li>
243
+ <li><a href="typeAsserts.html">Type&nbsp;Asserts</a></li>
244
+ <li><a href="utilityAsserts.html">Utility&nbsp;Methods</a></li>
245
+ <li><a href="stringAssert.html">String&nbsp;Assert</a></li>
246
+ <li><a href="collectionAssert.html">Collection&nbsp;Assert</a></li>
247
+ <li><a href="fileAssert.html">File&nbsp;Assert</a></li>
248
+ </ul>
249
+ <li><a href="constraintModel.html">Constraint&nbsp;Model</a></li>
250
+ </ul>
251
+ <li><a href="attributes.html">Attributes</a></li>
252
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
253
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
254
+ <li><a href="features.html">Other&nbsp;Features</a></li>
255
+ <li><a href="releaseNotes.html">Release&nbsp;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 &copy; 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&nbsp;Started</a></li>
71
+ <li><a href="assertions.html">Assertions</a></li>
72
+ <ul>
73
+ <li><a href="classicModel.html">Classic&nbsp;Model</a></li>
74
+ <li><a href="constraintModel.html">Constraint&nbsp;Model</a></li>
75
+ <ul>
76
+ <li><a href="equalConstraint.html">Equal&nbsp;Constraint</a></li>
77
+ <li><a href="sameasConstraint.html">SameAs&nbsp;Constraint</a></li>
78
+ <li><a href="conditionConstraints.html">Condition&nbsp;Constraints</a></li>
79
+ <li id="current"><a href="comparisonConstraints.html">Comparison&nbsp;Constrants</a></li>
80
+ <li><a href="typeConstraints.html">Type&nbsp;Constraints</a></li>
81
+ <li><a href="stringConstraints.html">String&nbsp;Constraints</a></li>
82
+ <li><a href="collectionConstraints.html">Collection&nbsp;Constraints</a></li>
83
+ <li><a href="propertyConstraint.html">Property&nbsp;Constraint</a></li>
84
+ <li><a href="compoundConstraints.html">Compound&nbsp;Constraints</a></li>
85
+ <li><a href="customConstraints.html">Custom&nbsp;Constraints</a></li>
86
+ <li><a href="listMapper.html">List&nbsp;Mapper</a></li>
87
+ </ul>
88
+ </ul>
89
+ <li><a href="attributes.html">Attributes</a></li>
90
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
91
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
92
+ <li><a href="features.html">Other&nbsp;Features</a></li>
93
+ <li><a href="releaseNotes.html">Release&nbsp;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 &copy; 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 &amp; 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&nbsp;Started</a></li>
59
+ <li><a href="assertions.html">Assertions</a></li>
60
+ <ul>
61
+ <li><a href="classicModel.html">Classic&nbsp;Model</a></li>
62
+ <li><a href="constraintModel.html">Constraint&nbsp;Model</a></li>
63
+ <ul>
64
+ <li><a href="equalConstraint.html">Equal&nbsp;Constraint</a></li>
65
+ <li><a href="sameasConstraint.html">SameAs&nbsp;Constraint</a></li>
66
+ <li><a href="conditionConstraints.html">Condition&nbsp;Constraints</a></li>
67
+ <li><a href="comparisonConstraints.html">Comparison&nbsp;Constrants</a></li>
68
+ <li><a href="typeConstraints.html">Type&nbsp;Constraints</a></li>
69
+ <li><a href="stringConstraints.html">String&nbsp;Constraints</a></li>
70
+ <li><a href="collectionConstraints.html">Collection&nbsp;Constraints</a></li>
71
+ <li><a href="propertyConstraint.html">Property&nbsp;Constraint</a></li>
72
+ <li id="current"><a href="compoundConstraints.html">Compound&nbsp;Constraints</a></li>
73
+ <li><a href="customConstraints.html">Custom&nbsp;Constraints</a></li>
74
+ <li><a href="listMapper.html">List&nbsp;Mapper</a></li>
75
+ </ul>
76
+ </ul>
77
+ <li><a href="attributes.html">Attributes</a></li>
78
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
79
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
80
+ <li><a href="features.html">Other&nbsp;Features</a></li>
81
+ <li><a href="releaseNotes.html">Release&nbsp;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 &copy; 2008 Charlie Poole. All Rights Reserved.
93
+ </div>
94
+ <!-- End of Footer -->
95
+
96
+ </body>
97
+ </html>