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,76 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
+ <html>
3
+ <!-- Standard Head Part -->
4
+ <head>
5
+ <title>NUnit - TestProperties</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>Test Properties Dialog</h2>
28
+
29
+ <p>The test properties dialog is displayed using either the View | Properties menu item on the main
30
+ menu or the Properties item on the context menu. It shows information about the test and � if it
31
+ has been run � about the results. The dialog contains a �pin� button in the upper right corner,
32
+ which causes it to remain open as the user clicks on different tests.</p>
33
+
34
+ <div class="screenshot-left">
35
+ <img src="img/testProperties.jpg"></div>
36
+
37
+ </div>
38
+
39
+ <!-- Submenu -->
40
+ <div id="subnav">
41
+ <ul>
42
+ <li><a href="index.html">NUnit 2.4.8</a></li>
43
+ <ul>
44
+ <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
45
+ <li><a href="assertions.html">Assertions</a></li>
46
+ <li><a href="attributes.html">Attributes</a></li>
47
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
48
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
49
+ <ul>
50
+ <li><a href="guiCommandLine.html">Command-Line</a></li>
51
+ <li><a href="mainMenu.html">Main&nbsp;Menu</a></li>
52
+ <li><a href="contextMenu.html">Context&nbsp;Menu</a></li>
53
+ <li><a href="optionsDialog.html">Options&nbsp;Dialog</a></li>
54
+ <li><a href="addinsDialog.html">Addins&nbsp;Dialog</a></li>
55
+ <li id="current"><a href="testProperties.html">Test&nbsp;Properties</a></li>
56
+ <li><a href="configEditor.html">Configuration&nbsp;Editor</a></li>
57
+ <li><a href="projectEditor.html">Project&nbsp;Editor</a></li>
58
+ </ul>
59
+ <li><a href="features.html">Other&nbsp;Features</a></li>
60
+ <li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
61
+ <li><a href="samples.html">Samples</a></li>
62
+ <li><a href="license.html">License</a></li>
63
+ </ul>
64
+ </ul>
65
+ </div>
66
+ <!-- End of Submenu -->
67
+
68
+
69
+ <!-- Standard Footer for NUnit.org -->
70
+ <div id="footer">
71
+ Copyright &copy; 2008 Charlie Poole. All Rights Reserved.
72
+ </div>
73
+ <!-- End of Footer -->
74
+
75
+ </body>
76
+ </html>
@@ -0,0 +1,101 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
+ <html>
3
+ <!-- Standard Head Part -->
4
+ <head>
5
+ <title>NUnit - TypeAsserts</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>Type Asserts (NUnit 2.2.3)</h2>
28
+
29
+ <p>These methods allow us to make assertions about the type of an object.</p>
30
+
31
+ <div class="code" style="width: 36em" >
32
+ <pre>Assert.IsInstanceOfType( Type expected, object actual );
33
+ Assert.IsInstanceOfType( Type expected, object actual,
34
+ string message );
35
+ Assert.IsInstanceOfType( Type expected, object actual,
36
+ string message, params object[] parms );
37
+
38
+ Assert.IsNotInstanceOfType( Type expected, object actual );
39
+ Assert.IsNotInstanceOfType( Type expected, object actual,
40
+ string message );
41
+ Assert.IsNotInstanceOfType( Type expected, object actual,
42
+ string message, params object[] parms );
43
+
44
+ Assert.IsAssignableFrom( Type expected, object actual );
45
+ Assert.IsAssignableFrom( Type expected, object actual,
46
+ string message );
47
+ Assert.IsAssignableFrom( Type expected, object actual,
48
+ string message, params object[] parms );
49
+
50
+ Assert.IsNotAssignableFrom( Type expected, object actual );
51
+ Assert.IsNotAssignableFrom( Type expected, object actual,
52
+ string message );
53
+ Assert.IsNotAssignableFrom( Type expected, object actual,
54
+ string message, params object[] parms );</pre>
55
+ </div>
56
+
57
+ </div>
58
+
59
+ <!-- Submenu -->
60
+ <div id="subnav">
61
+ <ul>
62
+ <li><a href="index.html">NUnit 2.4.8</a></li>
63
+ <ul>
64
+ <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
65
+ <li><a href="assertions.html">Assertions</a></li>
66
+ <ul>
67
+ <li><a href="classicModel.html">Classic&nbsp;Model</a></li>
68
+ <ul>
69
+ <li><a href="equalityAsserts.html">Equality&nbsp;Asserts</a></li>
70
+ <li><a href="identityAsserts.html">Identity&nbsp;Asserts</a></li>
71
+ <li><a href="conditionAsserts.html">Condition&nbsp;Tests</a></li>
72
+ <li><a href="comparisonAsserts.html">Comparison&nbsp;Asserts</a></li>
73
+ <li id="current"><a href="typeAsserts.html">Type&nbsp;Asserts</a></li>
74
+ <li><a href="utilityAsserts.html">Utility&nbsp;Methods</a></li>
75
+ <li><a href="stringAssert.html">String&nbsp;Assert</a></li>
76
+ <li><a href="collectionAssert.html">Collection&nbsp;Assert</a></li>
77
+ <li><a href="fileAssert.html">File&nbsp;Assert</a></li>
78
+ </ul>
79
+ <li><a href="constraintModel.html">Constraint&nbsp;Model</a></li>
80
+ </ul>
81
+ <li><a href="attributes.html">Attributes</a></li>
82
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
83
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
84
+ <li><a href="features.html">Other&nbsp;Features</a></li>
85
+ <li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
86
+ <li><a href="samples.html">Samples</a></li>
87
+ <li><a href="license.html">License</a></li>
88
+ </ul>
89
+ </ul>
90
+ </div>
91
+ <!-- End of Submenu -->
92
+
93
+
94
+ <!-- Standard Footer for NUnit.org -->
95
+ <div id="footer">
96
+ Copyright &copy; 2008 Charlie Poole. All Rights Reserved.
97
+ </div>
98
+ <!-- End of Footer -->
99
+
100
+ </body>
101
+ </html>
@@ -0,0 +1,103 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
+ <html>
3
+ <!-- Standard Head Part -->
4
+ <head>
5
+ <title>NUnit - TypeConstraints</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>Type Constraints (NUnit 2.4)</h2>
28
+
29
+ <p>Type constraints perform tests that are specific to Types.
30
+ The following type constraints are provided:
31
+
32
+ <table class="constraints">
33
+ <tr><th>Syntax Helper</th><th>Constructor</th><th>Operation</th></tr>
34
+ <tr><td>Is.TypeOf( Type )</td><td>ExactTypeConstraint( Type )</td></td><td>tests that an object is an exact Type</td></tr>
35
+ <tr><td>Is.InstanceOfType( Type )</td><td>InstanceOfTypeConstraint( Type )</td></td><td>tests that an object is an instance of a Type</td></tr>
36
+ <tr><td>Is.AssignableFrom( Type )</td><td>AssignableFromConstraint( Type )</td></td><td>tests that one type is assignable from another</td></tr>
37
+ </table>
38
+
39
+ <h4>Examples of Use</h4>
40
+
41
+ <div class="code"><pre>
42
+ Assert.That("Hello", Is.TypeOf(typeof(string)));
43
+ Assert.That("Hello", Is.Not.TypeOf(typeof(int)));
44
+
45
+ Assert.That("Hello", Is.InstanceOfType(typeof(string)));
46
+ Assert.That(5, Is.Not.InstanceOfType(typeof(string)));
47
+
48
+ Assert.That( "Hello", Is.AssignableFrom(typeof(string)));
49
+ Assert.That( 5, Is.Not.AssignableFrom(typeof(string)));
50
+
51
+ // Using inheritance
52
+ Expect( 5, Not.InstanceOfType(typeof(string)));
53
+ Expect( "Hello", AssignableFrom(typeOf(string)));
54
+ </pre></div>
55
+
56
+
57
+ </div>
58
+
59
+ <!-- Submenu -->
60
+ <div id="subnav">
61
+ <ul>
62
+ <li><a href="index.html">NUnit 2.4.8</a></li>
63
+ <ul>
64
+ <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
65
+ <li><a href="assertions.html">Assertions</a></li>
66
+ <ul>
67
+ <li><a href="classicModel.html">Classic&nbsp;Model</a></li>
68
+ <li><a href="constraintModel.html">Constraint&nbsp;Model</a></li>
69
+ <ul>
70
+ <li><a href="equalConstraint.html">Equal&nbsp;Constraint</a></li>
71
+ <li><a href="sameasConstraint.html">SameAs&nbsp;Constraint</a></li>
72
+ <li><a href="conditionConstraints.html">Condition&nbsp;Constraints</a></li>
73
+ <li><a href="comparisonConstraints.html">Comparison&nbsp;Constrants</a></li>
74
+ <li id="current"><a href="typeConstraints.html">Type&nbsp;Constraints</a></li>
75
+ <li><a href="stringConstraints.html">String&nbsp;Constraints</a></li>
76
+ <li><a href="collectionConstraints.html">Collection&nbsp;Constraints</a></li>
77
+ <li><a href="propertyConstraint.html">Property&nbsp;Constraint</a></li>
78
+ <li><a href="compoundConstraints.html">Compound&nbsp;Constraints</a></li>
79
+ <li><a href="customConstraints.html">Custom&nbsp;Constraints</a></li>
80
+ <li><a href="listMapper.html">List&nbsp;Mapper</a></li>
81
+ </ul>
82
+ </ul>
83
+ <li><a href="attributes.html">Attributes</a></li>
84
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
85
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
86
+ <li><a href="features.html">Other&nbsp;Features</a></li>
87
+ <li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
88
+ <li><a href="samples.html">Samples</a></li>
89
+ <li><a href="license.html">License</a></li>
90
+ </ul>
91
+ </ul>
92
+ </div>
93
+ <!-- End of Submenu -->
94
+
95
+
96
+ <!-- Standard Footer for NUnit.org -->
97
+ <div id="footer">
98
+ Copyright &copy; 2008 Charlie Poole. All Rights Reserved.
99
+ </div>
100
+ <!-- End of Footer -->
101
+
102
+ </body>
103
+ </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 - Upgrade</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>From NUnit 2.x</h2>
28
+
29
+ <p>Beginning with version 2.2.1, old style test cases ("Test....") are no longer
30
+ recognized by default. We recommend that you convert such test cases to use the
31
+ <a href="test.html">TestAttribute</a>. Alternatively, you may
32
+ specify a setting in the test config file to allow use of old style test cases by
33
+ default.</p>
34
+
35
+ <p>Beginning with NUnit 2.2.2, NUnit is able to run tests Built with older
36
+ versions of NUnit 2.x without recompilation.</p>
37
+
38
+ <h2>From NUnit 1.x</h2>
39
+
40
+ <p>Upgrading requires a minimal amount of work. Since the framework still looks for
41
+ test methods by name in addition to the attributes, <b>no test method will need to
42
+ be modified to upgrade to the new version</b>. The only source code change
43
+ required is to remove the constructor with the string parameter in the class
44
+ that inherits from TestCase. The only new requirement is that you have a
45
+ default constructor. If there was significant processing in the existing
46
+ constructor then just move it to the default constructor. The only other change
47
+ is to change the reference to nunit.framework.dll instead of the V1.x framework
48
+ dll. Using the TestCase class has been marked obsolete so you will get
49
+ warnings, but they can be ignored for now!&nbsp;
50
+ </p>
51
+ <h3>Suite property</h3>
52
+ <p>The existing Suite property will not be found by the new program. These must be
53
+ changed to the &quot;Suite&quot; attribute for the test runners to find them.
54
+ Another alternative is that these suites are no longer needed due to the
55
+ automatic capability that is built in to the new version.</p>
56
+ <h3>AssertionFailedError</h3>
57
+ <p>If you have written code expecting the exception AssertionFailedError, this must
58
+ be changed to AssertionException.</p>
59
+
60
+
61
+ </div>
62
+
63
+ <!-- Submenu -->
64
+ <div id="subnav">
65
+ <ul>
66
+ <li><a href="index.html">NUnit 2.4.8</a></li>
67
+ <ul>
68
+ <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
69
+ <ul>
70
+ <li><a href="quickStart.html">Quick&nbsp;Start</a></li>
71
+ <li><a href="installation.html">Installation</a></li>
72
+ <ul>
73
+ <li id="current"><a href="upgrade.html">Upgrading</a></li>
74
+ </ul>
75
+ </ul>
76
+ <li><a href="assertions.html">Assertions</a></li>
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>
@@ -0,0 +1,108 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
2
+ <html>
3
+ <!-- Standard Head Part -->
4
+ <head>
5
+ <title>NUnit - UtilityAsserts</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>Utility Methods</h2>
28
+ <p>Two utility methods, Fail() and Ignore() are provided in order to allow more
29
+ direct control of the test process:</p>
30
+ <div class="code" style="width: 36em">
31
+ <pre>Assert.Fail();
32
+ Assert.Fail( string message );
33
+ Assert.Fail( string message, object[] parms );
34
+
35
+ Assert.Ignore();
36
+ Assert.Ignore( string message );
37
+ Assert.Ignore( string message, object[] parms );</pre>
38
+ </div>
39
+ <p>The Assert.Fail method provides you with the ability to generate a failure based
40
+ on tests that are not encapsulated by the other methods. It is also useful in
41
+ developing your own project-specific assertions.</p>
42
+ <p>Here's an example of its use to create a private assertion that tests whether a
43
+ string contains an expected value.</p>
44
+ <div class="code" style="width: 36em">
45
+ <pre>public void AssertStringContains( string expected, string actual )
46
+ {
47
+ AssertStringContains( expected, actual, string.Empty );
48
+ }
49
+
50
+ public void AssertStringContains( string expected, string actual,
51
+ string message )
52
+ {
53
+ if ( actual.IndexOf( expected ) < 0 )
54
+ Assert.Fail( message );
55
+ }</pre>
56
+ </div>
57
+ <p>The Assert.Ignore method provides you with the ability to dynamically cause a
58
+ test or suite to be ignored at runtime. It may be called in a test, setup or
59
+ fixture setup method. We recommend that you use this only in isolated cases.
60
+ The category facility is provided for more extensive inclusion or exclusion of
61
+ tests or you may elect to simply divide tests run on different occasions into
62
+ different assemblies.</p>
63
+
64
+ </div>
65
+
66
+ <!-- Submenu -->
67
+ <div id="subnav">
68
+ <ul>
69
+ <li><a href="index.html">NUnit 2.4.8</a></li>
70
+ <ul>
71
+ <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
72
+ <li><a href="assertions.html">Assertions</a></li>
73
+ <ul>
74
+ <li><a href="classicModel.html">Classic&nbsp;Model</a></li>
75
+ <ul>
76
+ <li><a href="equalityAsserts.html">Equality&nbsp;Asserts</a></li>
77
+ <li><a href="identityAsserts.html">Identity&nbsp;Asserts</a></li>
78
+ <li><a href="conditionAsserts.html">Condition&nbsp;Tests</a></li>
79
+ <li><a href="comparisonAsserts.html">Comparison&nbsp;Asserts</a></li>
80
+ <li><a href="typeAsserts.html">Type&nbsp;Asserts</a></li>
81
+ <li id="current"><a href="utilityAsserts.html">Utility&nbsp;Methods</a></li>
82
+ <li><a href="stringAssert.html">String&nbsp;Assert</a></li>
83
+ <li><a href="collectionAssert.html">Collection&nbsp;Assert</a></li>
84
+ <li><a href="fileAssert.html">File&nbsp;Assert</a></li>
85
+ </ul>
86
+ <li><a href="constraintModel.html">Constraint&nbsp;Model</a></li>
87
+ </ul>
88
+ <li><a href="attributes.html">Attributes</a></li>
89
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
90
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
91
+ <li><a href="features.html">Other&nbsp;Features</a></li>
92
+ <li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
93
+ <li><a href="samples.html">Samples</a></li>
94
+ <li><a href="license.html">License</a></li>
95
+ </ul>
96
+ </ul>
97
+ </div>
98
+ <!-- End of Submenu -->
99
+
100
+
101
+ <!-- Standard Footer for NUnit.org -->
102
+ <div id="footer">
103
+ Copyright &copy; 2008 Charlie Poole. All Rights Reserved.
104
+ </div>
105
+ <!-- End of Footer -->
106
+
107
+ </body>
108
+ </html>