nunit 2.5.1.9189 → 2.5.2.9222

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. data/docs/addinsDialog.html +1 -1
  2. data/docs/assertions.html +1 -1
  3. data/docs/attributes.html +1 -1
  4. data/docs/category.html +1 -1
  5. data/docs/collectionAssert.html +1 -1
  6. data/docs/collectionConstraints.html +1 -1
  7. data/docs/combinatorial.html +1 -1
  8. data/docs/comparisonAsserts.html +1 -1
  9. data/docs/comparisonConstraints.html +1 -1
  10. data/docs/compoundConstraints.html +1 -1
  11. data/docs/conditionAsserts.html +1 -1
  12. data/docs/conditionConstraints.html +1 -1
  13. data/docs/configEditor.html +1 -1
  14. data/docs/configFiles.html +1 -1
  15. data/docs/consoleCommandLine.html +1 -1
  16. data/docs/constraintModel.html +1 -1
  17. data/docs/contextMenu.html +1 -1
  18. data/docs/culture.html +1 -1
  19. data/docs/customConstraints.html +1 -1
  20. data/docs/datapoint.html +1 -1
  21. data/docs/datapointProviders.html +1 -1
  22. data/docs/delayedConstraint.html +1 -1
  23. data/docs/description.html +1 -1
  24. data/docs/directoryAssert.html +1 -1
  25. data/docs/equalConstraint.html +1 -1
  26. data/docs/equalityAsserts.html +1 -1
  27. data/docs/eventListeners.html +1 -1
  28. data/docs/exception.html +1 -1
  29. data/docs/exceptionAsserts.html +42 -15
  30. data/docs/explicit.html +1 -1
  31. data/docs/extensibility.html +1 -1
  32. data/docs/extensionTips.html +1 -1
  33. data/docs/fileAssert.html +1 -1
  34. data/docs/fixtureSetup.html +1 -1
  35. data/docs/fixtureTeardown.html +1 -1
  36. data/docs/getStarted.html +1 -1
  37. data/docs/guiCommandLine.html +1 -1
  38. data/docs/identityAsserts.html +1 -1
  39. data/docs/ignore.html +1 -1
  40. data/docs/index.html +3 -3
  41. data/docs/installation.html +2 -2
  42. data/docs/license.html +1 -1
  43. data/docs/listMapper.html +1 -1
  44. data/docs/mainMenu.html +1 -1
  45. data/docs/maxtime.html +21 -6
  46. data/docs/multiAssembly.html +1 -1
  47. data/docs/nunit-console.html +1 -1
  48. data/docs/nunit-gui.html +1 -1
  49. data/docs/nunit.css +9 -1
  50. data/docs/nunitAddins.html +1 -1
  51. data/docs/pairwise.html +1 -1
  52. data/docs/parameterizedTests.html +1 -1
  53. data/docs/pathConstraints.html +1 -1
  54. data/docs/platform.html +1 -1
  55. data/docs/pnunit.html +1 -1
  56. data/docs/projectEditor.html +1 -1
  57. data/docs/property.html +1 -1
  58. data/docs/propertyConstraint.html +1 -1
  59. data/docs/quickStart.html +1 -1
  60. data/docs/random.html +1 -1
  61. data/docs/range.html +17 -1
  62. data/docs/releaseNotes.html +63 -1
  63. data/docs/repeat.html +1 -1
  64. data/docs/requiredAddin.html +1 -1
  65. data/docs/requiresMTA.html +1 -1
  66. data/docs/requiresSTA.html +1 -1
  67. data/docs/requiresThread.html +1 -1
  68. data/docs/sameasConstraint.html +1 -1
  69. data/docs/samples.html +1 -1
  70. data/docs/sequential.html +1 -1
  71. data/docs/setCulture.html +1 -1
  72. data/docs/settingsDialog.html +1 -1
  73. data/docs/setup.html +1 -1
  74. data/docs/setupFixture.html +1 -1
  75. data/docs/stringAssert.html +1 -1
  76. data/docs/stringConstraints.html +1 -1
  77. data/docs/suite.html +1 -1
  78. data/docs/suiteBuilders.html +1 -1
  79. data/docs/teardown.html +1 -1
  80. data/docs/test.html +1 -1
  81. data/docs/testCase.html +19 -2
  82. data/docs/testCaseSource.html +26 -1
  83. data/docs/testDecorators.html +1 -1
  84. data/docs/testFixture.html +6 -1
  85. data/docs/testProperties.html +1 -1
  86. data/docs/testcaseBuilders.html +1 -1
  87. data/docs/testcaseProviders.html +1 -1
  88. data/docs/theory.html +1 -1
  89. data/docs/throwsConstraint.html +21 -1
  90. data/docs/timeout.html +17 -3
  91. data/docs/typeAsserts.html +1 -1
  92. data/docs/typeConstraints.html +1 -1
  93. data/docs/upgrade.html +1 -1
  94. data/docs/utilityAsserts.html +1 -1
  95. data/docs/valueSource.html +17 -1
  96. data/docs/values.html +17 -1
  97. data/docs/vsSupport.html +1 -1
  98. data/lib/net-1.1/framework/nunit.framework.dll +0 -0
  99. data/lib/net-1.1/framework/nunit.framework.xml +180 -16
  100. data/lib/net-1.1/framework/nunit.mocks.dll +0 -0
  101. data/lib/net-1.1/framework/pnunit.framework.dll +0 -0
  102. data/lib/net-1.1/lib/nunit-console-runner.dll +0 -0
  103. data/lib/net-1.1/lib/nunit.core.dll +0 -0
  104. data/lib/net-1.1/lib/nunit.core.interfaces.dll +0 -0
  105. data/lib/net-1.1/lib/nunit.fixtures.dll +0 -0
  106. data/lib/net-1.1/lib/nunit.util.dll +0 -0
  107. data/lib/net-1.1/nunit-agent.exe +0 -0
  108. data/lib/net-1.1/nunit-console.exe +0 -0
  109. data/lib/net-1.1/nunit.framework.dll +0 -0
  110. data/lib/net-1.1/pnunit-agent.exe +0 -0
  111. data/lib/net-1.1/pnunit-launcher.exe +0 -0
  112. data/lib/net-1.1/pnunit.framework.dll +0 -0
  113. data/lib/net-1.1/pnunit.tests.dll +0 -0
  114. data/lib/net-1.1/tests/loadtest-assembly.dll +0 -0
  115. data/lib/net-1.1/tests/mock-assembly.dll +0 -0
  116. data/lib/net-1.1/tests/nonamespace-assembly.dll +0 -0
  117. data/lib/net-1.1/tests/nunit-console.tests.dll +0 -0
  118. data/lib/net-1.1/tests/nunit.core.tests.dll +0 -0
  119. data/lib/net-1.1/tests/nunit.fixtures.tests.dll +0 -0
  120. data/lib/net-1.1/tests/nunit.framework.dll +0 -0
  121. data/lib/net-1.1/tests/nunit.framework.tests.dll +0 -0
  122. data/lib/net-1.1/tests/nunit.mocks.tests.dll +0 -0
  123. data/lib/net-1.1/tests/nunit.util.tests.dll +0 -0
  124. data/lib/net-1.1/tests/test-assembly.dll +0 -0
  125. data/lib/net-1.1/tests/test-utilities.dll +0 -0
  126. data/lib/net-1.1/tests/timing-tests.dll +0 -0
  127. data/lib/net-2.0/framework/nunit.framework.dll +0 -0
  128. data/lib/net-2.0/framework/nunit.framework.xml +207 -16
  129. data/lib/net-2.0/framework/nunit.mocks.dll +0 -0
  130. data/lib/net-2.0/framework/pnunit.framework.dll +0 -0
  131. data/lib/net-2.0/lib/nunit-console-runner.dll +0 -0
  132. data/lib/net-2.0/lib/nunit-gui-runner.dll +0 -0
  133. data/lib/net-2.0/lib/nunit.core.dll +0 -0
  134. data/lib/net-2.0/lib/nunit.core.interfaces.dll +0 -0
  135. data/lib/net-2.0/lib/nunit.fixtures.dll +0 -0
  136. data/lib/net-2.0/lib/nunit.uiexception.dll +0 -0
  137. data/lib/net-2.0/lib/nunit.uikit.dll +0 -0
  138. data/lib/net-2.0/lib/nunit.util.dll +0 -0
  139. data/lib/net-2.0/nunit-agent.exe +0 -0
  140. data/lib/net-2.0/nunit-console-x86.exe +0 -0
  141. data/lib/net-2.0/nunit-console.exe +0 -0
  142. data/lib/net-2.0/nunit-x86.exe +0 -0
  143. data/lib/net-2.0/nunit.exe +0 -0
  144. data/lib/net-2.0/nunit.framework.dll +0 -0
  145. data/lib/net-2.0/pnunit-agent.exe +0 -0
  146. data/lib/net-2.0/pnunit-launcher.exe +0 -0
  147. data/lib/net-2.0/pnunit.framework.dll +0 -0
  148. data/lib/net-2.0/pnunit.tests.dll +0 -0
  149. data/lib/net-2.0/tests/loadtest-assembly.dll +0 -0
  150. data/lib/net-2.0/tests/mock-assembly.dll +0 -0
  151. data/lib/net-2.0/tests/nonamespace-assembly.dll +0 -0
  152. data/lib/net-2.0/tests/nunit-console.tests.dll +0 -0
  153. data/lib/net-2.0/tests/nunit-gui.tests.dll +0 -0
  154. data/lib/net-2.0/tests/nunit.core.tests.dll +0 -0
  155. data/lib/net-2.0/tests/nunit.fixtures.tests.dll +0 -0
  156. data/lib/net-2.0/tests/nunit.framework.dll +0 -0
  157. data/lib/net-2.0/tests/nunit.framework.tests.dll +0 -0
  158. data/lib/net-2.0/tests/nunit.mocks.tests.dll +0 -0
  159. data/lib/net-2.0/tests/nunit.uiexception.tests.dll +0 -0
  160. data/lib/net-2.0/tests/nunit.uikit.tests.dll +0 -0
  161. data/lib/net-2.0/tests/nunit.util.tests.dll +0 -0
  162. data/lib/net-2.0/tests/test-assembly.dll +0 -0
  163. data/lib/net-2.0/tests/test-utilities.dll +0 -0
  164. data/lib/net-2.0/tests/timing-tests.dll +0 -0
  165. metadata +4 -4
@@ -62,7 +62,7 @@ and any error message displayed here when that addin is selected.
62
62
  <!-- Submenu -->
63
63
  <div id="subnav">
64
64
  <ul>
65
- <li><a href="index.html">NUnit 2.5.1</a></li>
65
+ <li><a href="index.html">NUnit 2.5.2</a></li>
66
66
  <ul>
67
67
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
68
68
  <li><a href="assertions.html">Assertions</a></li>
data/docs/assertions.html CHANGED
@@ -65,7 +65,7 @@
65
65
  <!-- Submenu -->
66
66
  <div id="subnav">
67
67
  <ul>
68
- <li><a href="index.html">NUnit 2.5.1</a></li>
68
+ <li><a href="index.html">NUnit 2.5.2</a></li>
69
69
  <ul>
70
70
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
71
71
  <li id="current"><a href="assertions.html">Assertions</a></li>
data/docs/attributes.html CHANGED
@@ -43,7 +43,7 @@
43
43
  <!-- Submenu -->
44
44
  <div id="subnav">
45
45
  <ul>
46
- <li><a href="index.html">NUnit 2.5.1</a></li>
46
+ <li><a href="index.html">NUnit 2.5.2</a></li>
47
47
  <ul>
48
48
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
49
49
  <li><a href="assertions.html">Assertions</a></li>
data/docs/category.html CHANGED
@@ -219,7 +219,7 @@ public void MyTest()
219
219
  <!-- Submenu -->
220
220
  <div id="subnav">
221
221
  <ul>
222
- <li><a href="index.html">NUnit 2.5.1</a></li>
222
+ <li><a href="index.html">NUnit 2.5.2</a></li>
223
223
  <ul>
224
224
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
225
225
  <li><a href="assertions.html">Assertions</a></li>
@@ -135,7 +135,7 @@ CollectionAssert.IsOrdered( IEnumerable collection, IComparer comparer,
135
135
  <!-- Submenu -->
136
136
  <div id="subnav">
137
137
  <ul>
138
- <li><a href="index.html">NUnit 2.5.1</a></li>
138
+ <li><a href="index.html">NUnit 2.5.2</a></li>
139
139
  <ul>
140
140
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
141
141
  <li><a href="assertions.html">Assertions</a></li>
@@ -281,7 +281,7 @@ same modifier is used more than once, the result is undefined.
281
281
  <!-- Submenu -->
282
282
  <div id="subnav">
283
283
  <ul>
284
- <li><a href="index.html">NUnit 2.5.1</a></li>
284
+ <li><a href="index.html">NUnit 2.5.2</a></li>
285
285
  <ul>
286
286
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
287
287
  <li><a href="assertions.html">Assertions</a></li>
@@ -61,7 +61,7 @@ public void MyTest(
61
61
  <!-- Submenu -->
62
62
  <div id="subnav">
63
63
  <ul>
64
- <li><a href="index.html">NUnit 2.5.1</a></li>
64
+ <li><a href="index.html">NUnit 2.5.2</a></li>
65
65
  <ul>
66
66
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
67
67
  <li><a href="assertions.html">Assertions</a></li>
@@ -229,7 +229,7 @@ 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.5.1</a></li>
232
+ <li><a href="index.html">NUnit 2.5.2</a></li>
233
233
  <ul>
234
234
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
235
235
  <li><a href="assertions.html">Assertions</a></li>
@@ -196,7 +196,7 @@ Assert.That(myOwnObject,
196
196
  <!-- Submenu -->
197
197
  <div id="subnav">
198
198
  <ul>
199
- <li><a href="index.html">NUnit 2.5.1</a></li>
199
+ <li><a href="index.html">NUnit 2.5.2</a></li>
200
200
  <ul>
201
201
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
202
202
  <li><a href="assertions.html">Assertions</a></li>
@@ -53,7 +53,7 @@ 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.5.1</a></li>
56
+ <li><a href="index.html">NUnit 2.5.2</a></li>
57
57
  <ul>
58
58
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
59
59
  <li><a href="assertions.html">Assertions</a></li>
@@ -102,7 +102,7 @@ or a collection.</p>
102
102
  <!-- Submenu -->
103
103
  <div id="subnav">
104
104
  <ul>
105
- <li><a href="index.html">NUnit 2.5.1</a></li>
105
+ <li><a href="index.html">NUnit 2.5.2</a></li>
106
106
  <ul>
107
107
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
108
108
  <li><a href="assertions.html">Assertions</a></li>
@@ -165,7 +165,7 @@ Assert.That( collection, Is.Unique );
165
165
  <!-- Submenu -->
166
166
  <div id="subnav">
167
167
  <ul>
168
- <li><a href="index.html">NUnit 2.5.1</a></li>
168
+ <li><a href="index.html">NUnit 2.5.2</a></li>
169
169
  <ul>
170
170
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
171
171
  <li><a href="assertions.html">Assertions</a></li>
@@ -56,7 +56,7 @@ existing configuration to use as a template.</p>
56
56
  <!-- Submenu -->
57
57
  <div id="subnav">
58
58
  <ul>
59
- <li><a href="index.html">NUnit 2.5.1</a></li>
59
+ <li><a href="index.html">NUnit 2.5.2</a></li>
60
60
  <ul>
61
61
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
62
62
  <li><a href="assertions.html">Assertions</a></li>
@@ -122,7 +122,7 @@ level must be one that is defined by log4net.
122
122
  <!-- Submenu -->
123
123
  <div id="subnav">
124
124
  <ul>
125
- <li><a href="index.html">NUnit 2.5.1</a></li>
125
+ <li><a href="index.html">NUnit 2.5.2</a></li>
126
126
  <ul>
127
127
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
128
128
  <li><a href="assertions.html">Assertions</a></li>
@@ -269,7 +269,7 @@ may run for any amount of time.
269
269
  <!-- Submenu -->
270
270
  <div id="subnav">
271
271
  <ul>
272
- <li><a href="index.html">NUnit 2.5.1</a></li>
272
+ <li><a href="index.html">NUnit 2.5.2</a></li>
273
273
  <ul>
274
274
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
275
275
  <li><a href="assertions.html">Assertions</a></li>
@@ -124,7 +124,7 @@ Expect( TestDelegate del, IResolveConstraint constraint );
124
124
  <!-- Submenu -->
125
125
  <div id="subnav">
126
126
  <ul>
127
- <li><a href="index.html">NUnit 2.5.1</a></li>
127
+ <li><a href="index.html">NUnit 2.5.2</a></li>
128
128
  <ul>
129
129
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
130
130
  <li><a href="assertions.html">Assertions</a></li>
@@ -69,7 +69,7 @@ results in substantial reduction in load time.</p>
69
69
  <!-- Submenu -->
70
70
  <div id="subnav">
71
71
  <ul>
72
- <li><a href="index.html">NUnit 2.5.1</a></li>
72
+ <li><a href="index.html">NUnit 2.5.2</a></li>
73
73
  <ul>
74
74
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
75
75
  <li><a href="assertions.html">Assertions</a></li>
data/docs/culture.html CHANGED
@@ -209,7 +209,7 @@ public class SuccessTests
209
209
  <!-- Submenu -->
210
210
  <div id="subnav">
211
211
  <ul>
212
- <li><a href="index.html">NUnit 2.5.1</a></li>
212
+ <li><a href="index.html">NUnit 2.5.2</a></li>
213
213
  <ul>
214
214
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
215
215
  <li><a href="assertions.html">Assertions</a></li>
@@ -80,7 +80,7 @@ Assert.That( myArray, Has.Some.Matches(myConstraint) );</pre>
80
80
  <!-- Submenu -->
81
81
  <div id="subnav">
82
82
  <ul>
83
- <li><a href="index.html">NUnit 2.5.1</a></li>
83
+ <li><a href="index.html">NUnit 2.5.2</a></li>
84
84
  <ul>
85
85
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
86
86
  <li><a href="assertions.html">Assertions</a></li>
data/docs/datapoint.html CHANGED
@@ -55,7 +55,7 @@
55
55
  <!-- Submenu -->
56
56
  <div id="subnav">
57
57
  <ul>
58
- <li><a href="index.html">NUnit 2.5.1</a></li>
58
+ <li><a href="index.html">NUnit 2.5.2</a></li>
59
59
  <ul>
60
60
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
61
61
  <li><a href="assertions.html">Assertions</a></li>
@@ -84,7 +84,7 @@ of a parameterized test method.
84
84
  <!-- Submenu -->
85
85
  <div id="subnav">
86
86
  <ul>
87
- <li><a href="index.html">NUnit 2.5.1</a></li>
87
+ <li><a href="index.html">NUnit 2.5.2</a></li>
88
88
  <ul>
89
89
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
90
90
  <li><a href="assertions.html">Assertions</a></li>
@@ -51,7 +51,7 @@
51
51
  <!-- Submenu -->
52
52
  <div id="subnav">
53
53
  <ul>
54
- <li><a href="index.html">NUnit 2.5.1</a></li>
54
+ <li><a href="index.html">NUnit 2.5.2</a></li>
55
55
  <ul>
56
56
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
57
57
  <li><a href="assertions.html">Assertions</a></li>
@@ -132,7 +132,7 @@ new applciations. If both are used, the Description attribute takes precedence.<
132
132
  <!-- Submenu -->
133
133
  <div id="subnav">
134
134
  <ul>
135
- <li><a href="index.html">NUnit 2.5.1</a></li>
135
+ <li><a href="index.html">NUnit 2.5.2</a></li>
136
136
  <ul>
137
137
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
138
138
  <li><a href="assertions.html">Assertions</a></li>
@@ -106,7 +106,7 @@ DirectoryAssert.IsNotWithin( string expected, string actual,
106
106
  <!-- Submenu -->
107
107
  <div id="subnav">
108
108
  <ul>
109
- <li><a href="index.html">NUnit 2.5.1</a></li>
109
+ <li><a href="index.html">NUnit 2.5.2</a></li>
110
110
  <ul>
111
111
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
112
112
  <li><a href="assertions.html">Assertions</a></li>
@@ -212,7 +212,7 @@ For a <b>DirectoryInfo</b>, the first-level directory contents are compared.
212
212
  <!-- Submenu -->
213
213
  <div id="subnav">
214
214
  <ul>
215
- <li><a href="index.html">NUnit 2.5.1</a></li>
215
+ <li><a href="index.html">NUnit 2.5.2</a></li>
216
216
  <ul>
217
217
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
218
218
  <li><a href="assertions.html">Assertions</a></li>
@@ -145,7 +145,7 @@ values are tested for exact equality.
145
145
  <!-- Submenu -->
146
146
  <div id="subnav">
147
147
  <ul>
148
- <li><a href="index.html">NUnit 2.5.1</a></li>
148
+ <li><a href="index.html">NUnit 2.5.2</a></li>
149
149
  <ul>
150
150
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
151
151
  <li><a href="assertions.html">Assertions</a></li>
@@ -65,7 +65,7 @@ that you have no need of.
65
65
  <!-- Submenu -->
66
66
  <div id="subnav">
67
67
  <ul>
68
- <li><a href="index.html">NUnit 2.5.1</a></li>
68
+ <li><a href="index.html">NUnit 2.5.2</a></li>
69
69
  <ul>
70
70
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
71
71
  <li><a href="assertions.html">Assertions</a></li>
data/docs/exception.html CHANGED
@@ -252,7 +252,7 @@ namespace NUnitTests {
252
252
  <!-- Submenu -->
253
253
  <div id="subnav">
254
254
  <ul>
255
- <li><a href="index.html">NUnit 2.5.1</a></li>
255
+ <li><a href="index.html">NUnit 2.5.2</a></li>
256
256
  <ul>
257
257
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
258
258
  <li><a href="assertions.html">Assertions</a></li>
@@ -26,7 +26,7 @@
26
26
 
27
27
  <h2>Exception Asserts (NUnit 2.5)</h2>
28
28
 
29
- <p>The Assert.Throws method is pretty much in a class by itself. Rather than
29
+ <p>The <b>Assert.Throws</b> method is pretty much in a class by itself. Rather than
30
30
  comparing values, it attempts to invoke a code snippet, represented as
31
31
  a delegate, in order to verify that it throws a particular exception.
32
32
 
@@ -34,16 +34,18 @@
34
34
  than void, if the Assert is successful. See the example below for
35
35
  a few ways to use this.
36
36
 
37
- <p>Assert.Throws may be used with a constraint argument, which is applied
37
+ <p><b>Assert.Throws</b> may be used with a constraint argument, which is applied
38
38
  to the actual exception thrown, or with the Type of exception expected.
39
39
  The Type format is available in both both a non-generic and (in the .NET 2.0 version)
40
40
  generic form.
41
41
 
42
- <p>Assert.DoesNotThrow simply verifies that the delegate does not throw
42
+ <p><b>Assert.DoesNotThrow</b> simply verifies that the delegate does not throw
43
43
  an exception.
44
44
 
45
+ <p><b>Assert.Catch</b> is similar to <b>Assert.Throws</b> but will pass for an exception
46
+ that is derived from the one specified.
47
+
45
48
  <div class="code"><pre>
46
-
47
49
  Assert.Throws( Type expectedExceptionType, TestDelegate code );
48
50
  Assert.Throws( Type expectedExceptionType, TestDelegate code,
49
51
  string message );
@@ -65,13 +67,30 @@ Assert.DoesNotThrow( TestDelegate code );
65
67
  Assert.DoesNotThrow( TestDelegate code, string message );
66
68
  Assert.DoesNotThrow( TestDelegate code, string message,
67
69
  params object[] parms);
70
+
71
+ Assert.Catch( TestDelegate code );
72
+ Assert.Catch( TestDelegate code, string message );
73
+ Assert.Catch( TestDelegate code, string message,
74
+ params object[] parms);
75
+
76
+ Assert.Catch( Type expectedExceptionType, TestDelegate code );
77
+ Assert.Catch( Type expectedExceptionType, TestDelegate code,
78
+ string message );
79
+ Assert.Catch( Type expectedExceptionType, TestDelegate code,
80
+ string message, params object[] parms);
81
+
82
+ Assert.Catch&lt;T&gt;( TestDelegate code );
83
+ Assert.Catch&lt;T&gt;( TestDelegate code, string message );
84
+ Assert.Catch&lt;T&gt;( TestDelegate code, string message,
85
+ params object[] parms);
68
86
  </pre></div>
69
87
 
70
88
  <p>In the above code <b>TestDelegate</b> is a delegate of the form
71
89
  <b>void TestDelegate()</b>, which is used to execute the code
72
90
  in question. Under .NET 2.0, this may be an anonymous delegate.
91
+ If compiling under C# 3.0, it may be a lambda expression.
73
92
 
74
- <p>The following example includes four equivalent ways of writing the
93
+ <p>The following example shows different ways of writing the
75
94
  same test.
76
95
 
77
96
  <div class="code"><pre>
@@ -81,17 +100,19 @@ public class AssertThrowsTests
81
100
  [Test]
82
101
  public void Tests()
83
102
  {
103
+ // .NET 1.x
84
104
  Assert.Throws( typeof(ArgumentException),
85
105
  new TestDelegate(MethodThatThrows) );
86
106
 
107
+ // .NET 2.0
108
+ Assert.Throws&lt;ArgumentException&gt;( MethodThatThrows() );
109
+
87
110
  Assert.Throws&lt;ArgumentException&gt;(
88
- new TestDelegate(MethodThatThrows) );
89
-
90
- Assert.Throws( typeof(ArgumentException),
91
- delegate { throw new ArgumentException(); } );
92
-
111
+ delegate { throw new ArgumentException(); } );
112
+
113
+ // Using C# 3.0
93
114
  Assert.Throws&lt;ArgumentException&gt;(
94
- delegate { throw new ArgumentException(); } );
115
+ () => throw new ArgumentException(); } );
95
116
  }
96
117
 
97
118
  void MethodThatThrows()
@@ -137,12 +158,14 @@ public class UsingConstraint
137
158
 
138
159
  <p>Use the form that matches your style of coding.
139
160
 
140
- <h4>Exact Versus Derived Types</h4>
161
+ <h3>Exact Versus Derived Types</h3>
141
162
 
142
163
  <p>When used with a Type argument, <b>Assert.Throws</b> requires
143
164
  that exact type to be thrown. If you want to test for any
144
- derived Type, use a constraint. See the following code for
145
- examples:
165
+ derived Type, use one of the forms that allows specifying
166
+ a constraint. Alternatively, you may use <b>Assert.Catch</b>,
167
+ which differs from <b>Assert.Throws</b> in allowing derived
168
+ types. See the following code for examples:
146
169
 
147
170
  <div class="code">
148
171
  <pre>
@@ -153,6 +176,10 @@ Assert.Throws&lt;ApplicationException&gt;()( code );
153
176
  // Allow both ApplicationException and any derived type
154
177
  Assert.Throws( Is.InstanceOf( typeof(ApplicationException), code );
155
178
  Assert.Throws( Is.InstanceOf&lt;ApplicationException&gt;(), code );
179
+
180
+ // Allow both ApplicationException and any derived type
181
+ Assert.Catch( code );
182
+ Assert.Catch&lt;ApplicationException&gt;( code );
156
183
  </pre>
157
184
  </div>
158
185
 
@@ -165,7 +192,7 @@ Assert.Throws( Is.InstanceOf&lt;ApplicationException&gt;(), code );
165
192
  <!-- Submenu -->
166
193
  <div id="subnav">
167
194
  <ul>
168
- <li><a href="index.html">NUnit 2.5.1</a></li>
195
+ <li><a href="index.html">NUnit 2.5.2</a></li>
169
196
  <ul>
170
197
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
171
198
  <li><a href="assertions.html">Assertions</a></li>
data/docs/explicit.html CHANGED
@@ -210,7 +210,7 @@ public class SuccessTests
210
210
  <!-- Submenu -->
211
211
  <div id="subnav">
212
212
  <ul>
213
- <li><a href="index.html">NUnit 2.5.1</a></li>
213
+ <li><a href="index.html">NUnit 2.5.2</a></li>
214
214
  <ul>
215
215
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
216
216
  <li><a href="assertions.html">Assertions</a></li>
@@ -46,7 +46,7 @@ including the GUI.</p>
46
46
  <!-- Submenu -->
47
47
  <div id="subnav">
48
48
  <ul>
49
- <li><a href="index.html">NUnit 2.5.1</a></li>
49
+ <li><a href="index.html">NUnit 2.5.2</a></li>
50
50
  <ul>
51
51
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
52
52
  <li><a href="assertions.html">Assertions</a></li>
@@ -63,7 +63,7 @@ intended to do. Rather, let us know what further extension points you would like
63
63
  <!-- Submenu -->
64
64
  <div id="subnav">
65
65
  <ul>
66
- <li><a href="index.html">NUnit 2.5.1</a></li>
66
+ <li><a href="index.html">NUnit 2.5.2</a></li>
67
67
  <ul>
68
68
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
69
69
  <li><a href="assertions.html">Assertions</a></li>
data/docs/fileAssert.html CHANGED
@@ -72,7 +72,7 @@ FileAssert.AreNotEqual( string expected, string actual,
72
72
  <!-- Submenu -->
73
73
  <div id="subnav">
74
74
  <ul>
75
- <li><a href="index.html">NUnit 2.5.1</a></li>
75
+ <li><a href="index.html">NUnit 2.5.2</a></li>
76
76
  <ul>
77
77
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
78
78
  <li><a href="assertions.html">Assertions</a></li>
@@ -174,7 +174,7 @@ public class SuccessTests
174
174
  <!-- Submenu -->
175
175
  <div id="subnav">
176
176
  <ul>
177
- <li><a href="index.html">NUnit 2.5.1</a></li>
177
+ <li><a href="index.html">NUnit 2.5.2</a></li>
178
178
  <ul>
179
179
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
180
180
  <li><a href="assertions.html">Assertions</a></li>
@@ -174,7 +174,7 @@ public class SuccessTests
174
174
  <!-- Submenu -->
175
175
  <div id="subnav">
176
176
  <ul>
177
- <li><a href="index.html">NUnit 2.5.1</a></li>
177
+ <li><a href="index.html">NUnit 2.5.2</a></li>
178
178
  <ul>
179
179
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
180
180
  <li><a href="assertions.html">Assertions</a></li>
data/docs/getStarted.html CHANGED
@@ -49,7 +49,7 @@
49
49
  <!-- Submenu -->
50
50
  <div id="subnav">
51
51
  <ul>
52
- <li><a href="index.html">NUnit 2.5.1</a></li>
52
+ <li><a href="index.html">NUnit 2.5.2</a></li>
53
53
  <ul>
54
54
  <li id="current"><a href="getStarted.html">Getting&nbsp;Started</a></li>
55
55
  <ul>
@@ -146,7 +146,7 @@ option:
146
146
  <!-- Submenu -->
147
147
  <div id="subnav">
148
148
  <ul>
149
- <li><a href="index.html">NUnit 2.5.1</a></li>
149
+ <li><a href="index.html">NUnit 2.5.2</a></li>
150
150
  <ul>
151
151
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
152
152
  <li><a href="assertions.html">Assertions</a></li>
@@ -57,7 +57,7 @@ Assert.Contains( object anObject, IList collection,
57
57
  <!-- Submenu -->
58
58
  <div id="subnav">
59
59
  <ul>
60
- <li><a href="index.html">NUnit 2.5.1</a></li>
60
+ <li><a href="index.html">NUnit 2.5.2</a></li>
61
61
  <ul>
62
62
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
63
63
  <li><a href="assertions.html">Assertions</a></li>
data/docs/ignore.html CHANGED
@@ -203,7 +203,7 @@ public class SuccessTests
203
203
  <!-- Submenu -->
204
204
  <div id="subnav">
205
205
  <ul>
206
- <li><a href="index.html">NUnit 2.5.1</a></li>
206
+ <li><a href="index.html">NUnit 2.5.2</a></li>
207
207
  <ul>
208
208
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
209
209
  <li><a href="assertions.html">Assertions</a></li>
data/docs/index.html CHANGED
@@ -24,9 +24,9 @@
24
24
 
25
25
  <div id="content">
26
26
 
27
- <h2>NUnit 2.5.1</h2>
27
+ <h2>NUnit 2.5.2</h2>
28
28
 
29
- <p>This documentation covers the NUnit 2.5.1 release,
29
+ <p>This documentation covers the NUnit 2.5.2 release,
30
30
  introducing a large set of new features to NUnit, particularly in
31
31
  the area of parameterized or data-driven testing.
32
32
 
@@ -50,7 +50,7 @@ separately.</p>
50
50
  <!-- Submenu -->
51
51
  <div id="subnav">
52
52
  <ul>
53
- <li id="current"><a href="index.html">NUnit 2.5.1</a></li>
53
+ <li id="current"><a href="index.html">NUnit 2.5.2</a></li>
54
54
  <ul>
55
55
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
56
56
  <li><a href="assertions.html">Assertions</a></li>
@@ -26,7 +26,7 @@
26
26
 
27
27
  <h2>Installation</h2>
28
28
  <p>By default the <b>NUnit</b> installation program places all of the files into the
29
- <b>C:\Program&nbsp;Files\NUnit&nbsp;2.5.1</b> directory.
29
+ <b>C:\Program&nbsp;Files\NUnit&nbsp;2.5.2</b> directory.
30
30
  In the installation directory there are up to four sub-directories: net-1.1,
31
31
  net-2.0, doc, and samples. The actual number depends on what the user has
32
32
  chosen to install. Source code is no
@@ -91,7 +91,7 @@ loading and running NUnitTests.nunit. All tests should pass.
91
91
  <!-- Submenu -->
92
92
  <div id="subnav">
93
93
  <ul>
94
- <li><a href="index.html">NUnit 2.5.1</a></li>
94
+ <li><a href="index.html">NUnit 2.5.2</a></li>
95
95
  <ul>
96
96
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
97
97
  <ul>
data/docs/license.html CHANGED
@@ -61,7 +61,7 @@ us know</a>.</p>
61
61
  <!-- Submenu -->
62
62
  <div id="subnav">
63
63
  <ul>
64
- <li><a href="index.html">NUnit 2.5.1</a></li>
64
+ <li><a href="index.html">NUnit 2.5.2</a></li>
65
65
  <ul>
66
66
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
67
67
  <li><a href="assertions.html">Assertions</a></li>
data/docs/listMapper.html CHANGED
@@ -56,7 +56,7 @@ Expect(Map(strings).Property("Length"), EqualTo(lengths));
56
56
  <!-- Submenu -->
57
57
  <div id="subnav">
58
58
  <ul>
59
- <li><a href="index.html">NUnit 2.5.1</a></li>
59
+ <li><a href="index.html">NUnit 2.5.2</a></li>
60
60
  <ul>
61
61
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
62
62
  <li><a href="assertions.html">Assertions</a></li>
data/docs/mainMenu.html CHANGED
@@ -228,7 +228,7 @@ connect to the NUnit web site.</p>
228
228
  <!-- Submenu -->
229
229
  <div id="subnav">
230
230
  <ul>
231
- <li><a href="index.html">NUnit 2.5.1</a></li>
231
+ <li><a href="index.html">NUnit 2.5.2</a></li>
232
232
  <ul>
233
233
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
234
234
  <li><a href="assertions.html">Assertions</a></li>
data/docs/maxtime.html CHANGED
@@ -26,21 +26,36 @@
26
26
 
27
27
  <h3>MaxtimeAttribute (NUnit 2.5)</h3>
28
28
 
29
- <p>The <b>MaxtimeAttribute</b> is used to specify a maximum time in milliseconds
30
- for a test case. If the test case takes longer than the specified time to
31
- complete, it is considered to have failed.
29
+ <p>The <b>MaxtimeAttribute</b> is used on test methods to specify a maximum time
30
+ in milliseconds for a test case. If the test case takes longer than the
31
+ specified time to complete, it is reported as a failure.
32
32
 
33
- <p><b>Note:</b> This attribute does not cancel the test if the time
33
+ <h4>Example</h4>
34
+
35
+ <div class="code"><pre>
36
+ [Test, Maxtime(2000)]
37
+ public void TimedTest()
38
+ {
39
+ ...
40
+ }
41
+ </pre></div>
42
+
43
+ <h4>Notes:</h4>
44
+
45
+ <ol>
46
+ <li>Any assertion failures take precedence over the elapsed time check.
47
+ <li>This attribute does not cancel the test if the time
34
48
  is exceeded. It merely waits for the test to complete and then
35
49
  compares the elapsed time to the specified maximum. If you want to
36
- cancel a long-running tests, see <a href="timeout.html">TimeoutAttribute</a>.
50
+ cancel long-running tests, see <a href="timeout.html">TimeoutAttribute</a>.
51
+ </ol>
37
52
 
38
53
  </div>
39
54
 
40
55
  <!-- Submenu -->
41
56
  <div id="subnav">
42
57
  <ul>
43
- <li><a href="index.html">NUnit 2.5.1</a></li>
58
+ <li><a href="index.html">NUnit 2.5.2</a></li>
44
59
  <ul>
45
60
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
46
61
  <li><a href="assertions.html">Assertions</a></li>