nunit 2.5.0.9122 → 2.5.1.9189

Sign up to get free protection for your applications and to get access to all the features.
Files changed (177) hide show
  1. data/docs/addinsDialog.html +1 -1
  2. data/docs/assertions.html +1 -1
  3. data/docs/attributes.html +58 -58
  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 +3 -3
  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 +11 -5
  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 +24 -24
  20. data/docs/datapoint.html +1 -1
  21. data/docs/datapointProviders.html +29 -5
  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 +56 -56
  29. data/docs/exceptionAsserts.html +5 -5
  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/img/generalSettings.jpg +0 -0
  41. data/docs/img/gui-screenshot.jpg +0 -0
  42. data/docs/img/gui-verify.jpg +0 -0
  43. data/docs/img/miniGui.jpg +0 -0
  44. data/docs/index.html +3 -3
  45. data/docs/installation.html +2 -2
  46. data/docs/license.html +3 -3
  47. data/docs/listMapper.html +1 -1
  48. data/docs/mainMenu.html +1 -1
  49. data/docs/maxtime.html +1 -1
  50. data/docs/multiAssembly.html +1 -1
  51. data/docs/nunit-console.html +1 -1
  52. data/docs/nunit-gui.html +1 -1
  53. data/docs/nunitAddins.html +1 -1
  54. data/docs/pairwise.html +1 -1
  55. data/docs/parameterizedTests.html +20 -1
  56. data/docs/pathConstraints.html +1 -1
  57. data/docs/platform.html +1 -1
  58. data/docs/pnunit.html +1 -1
  59. data/docs/projectEditor.html +1 -1
  60. data/docs/property.html +1 -1
  61. data/docs/propertyConstraint.html +1 -1
  62. data/docs/quickStart.html +1 -1
  63. data/docs/random.html +1 -1
  64. data/docs/range.html +1 -1
  65. data/docs/releaseNotes.html +824 -411
  66. data/docs/repeat.html +1 -1
  67. data/docs/requiredAddin.html +1 -1
  68. data/docs/requiresMTA.html +1 -1
  69. data/docs/requiresSTA.html +1 -1
  70. data/docs/requiresThread.html +1 -1
  71. data/docs/sameasConstraint.html +1 -1
  72. data/docs/samples.html +1 -1
  73. data/docs/sequential.html +1 -1
  74. data/docs/setCulture.html +1 -1
  75. data/docs/settingsDialog.html +7 -1
  76. data/docs/setup.html +1 -1
  77. data/docs/setupFixture.html +1 -1
  78. data/docs/stringAssert.html +1 -1
  79. data/docs/stringConstraints.html +154 -23
  80. data/docs/suite.html +1 -1
  81. data/docs/suiteBuilders.html +1 -1
  82. data/docs/teardown.html +1 -1
  83. data/docs/test.html +1 -1
  84. data/docs/testCase.html +56 -56
  85. data/docs/testCaseSource.html +24 -11
  86. data/docs/testDecorators.html +1 -1
  87. data/docs/testFixture.html +11 -11
  88. data/docs/testProperties.html +1 -1
  89. data/docs/testcaseBuilders.html +1 -1
  90. data/docs/testcaseProviders.html +28 -5
  91. data/docs/theory.html +1 -1
  92. data/docs/throwsConstraint.html +46 -17
  93. data/docs/timeout.html +1 -1
  94. data/docs/typeAsserts.html +1 -1
  95. data/docs/typeConstraints.html +1 -1
  96. data/docs/upgrade.html +1 -1
  97. data/docs/utilityAsserts.html +1 -1
  98. data/docs/valueSource.html +19 -10
  99. data/docs/values.html +3 -3
  100. data/docs/vsSupport.html +1 -1
  101. data/lib/net-1.1/framework/nunit.framework.dll +0 -0
  102. data/lib/net-1.1/framework/nunit.framework.xml +105 -19
  103. data/lib/net-1.1/framework/nunit.mocks.dll +0 -0
  104. data/lib/net-1.1/framework/pnunit.framework.dll +0 -0
  105. data/lib/net-1.1/lib/nunit-console-runner.dll +0 -0
  106. data/lib/net-1.1/lib/nunit.core.dll +0 -0
  107. data/lib/net-1.1/lib/nunit.core.interfaces.dll +0 -0
  108. data/lib/net-1.1/lib/nunit.fixtures.dll +0 -0
  109. data/lib/net-1.1/lib/nunit.util.dll +0 -0
  110. data/lib/net-1.1/nunit-agent.exe +0 -0
  111. data/lib/net-1.1/nunit-console.exe +0 -0
  112. data/lib/net-1.1/nunit.framework.dll +0 -0
  113. data/lib/net-1.1/pnunit-agent.exe +0 -0
  114. data/lib/net-1.1/pnunit-launcher.exe +0 -0
  115. data/lib/net-1.1/pnunit.framework.dll +0 -0
  116. data/lib/net-1.1/pnunit.tests.dll +0 -0
  117. data/lib/net-1.1/tests/loadtest-assembly.dll +0 -0
  118. data/lib/net-1.1/tests/mock-assembly.dll +0 -0
  119. data/lib/net-1.1/tests/nonamespace-assembly.dll +0 -0
  120. data/lib/net-1.1/tests/nunit-console.tests.dll +0 -0
  121. data/lib/net-1.1/tests/nunit.core.tests.dll +0 -0
  122. data/lib/net-1.1/tests/nunit.fixtures.tests.dll +0 -0
  123. data/lib/net-1.1/tests/nunit.framework.dll +0 -0
  124. data/lib/net-1.1/tests/nunit.framework.tests.dll +0 -0
  125. data/lib/net-1.1/tests/nunit.mocks.tests.dll +0 -0
  126. data/lib/net-1.1/tests/nunit.util.tests.dll +0 -0
  127. data/lib/net-1.1/tests/test-assembly.dll +0 -0
  128. data/lib/net-1.1/tests/test-utilities.dll +0 -0
  129. data/lib/net-1.1/tests/timing-tests.dll +0 -0
  130. data/lib/net-2.0/framework/nunit.framework.dll +0 -0
  131. data/lib/net-2.0/framework/nunit.framework.xml +113 -19
  132. data/lib/net-2.0/framework/nunit.mocks.dll +0 -0
  133. data/lib/net-2.0/framework/pnunit.framework.dll +0 -0
  134. data/lib/net-2.0/lib/Failure.png +0 -0
  135. data/lib/net-2.0/lib/Ignored.png +0 -0
  136. data/lib/net-2.0/lib/Inconclusive.png +0 -0
  137. data/lib/net-2.0/lib/Skipped.png +0 -0
  138. data/lib/net-2.0/lib/Success.png +0 -0
  139. data/lib/net-2.0/lib/nunit-console-runner.dll +0 -0
  140. data/lib/net-2.0/lib/nunit-gui-runner.dll +0 -0
  141. data/lib/net-2.0/lib/nunit.core.dll +0 -0
  142. data/lib/net-2.0/lib/nunit.core.interfaces.dll +0 -0
  143. data/lib/net-2.0/lib/nunit.fixtures.dll +0 -0
  144. data/lib/net-2.0/lib/nunit.uiexception.dll +0 -0
  145. data/lib/net-2.0/lib/nunit.uikit.dll +0 -0
  146. data/lib/net-2.0/lib/nunit.util.dll +0 -0
  147. data/lib/net-2.0/nunit-agent.exe +0 -0
  148. data/lib/net-2.0/nunit-console-x86.exe +0 -0
  149. data/lib/net-2.0/nunit-console.exe +0 -0
  150. data/lib/net-2.0/nunit-x86.exe +0 -0
  151. data/lib/net-2.0/nunit.exe +0 -0
  152. data/lib/net-2.0/nunit.framework.dll +0 -0
  153. data/lib/net-2.0/pnunit-agent.exe +0 -0
  154. data/lib/net-2.0/pnunit-launcher.exe +0 -0
  155. data/lib/net-2.0/pnunit.framework.dll +0 -0
  156. data/lib/net-2.0/pnunit.tests.dll +0 -0
  157. data/lib/net-2.0/tests/loadtest-assembly.dll +0 -0
  158. data/lib/net-2.0/tests/mock-assembly.dll +0 -0
  159. data/lib/net-2.0/tests/nonamespace-assembly.dll +0 -0
  160. data/lib/net-2.0/tests/nunit-console.tests.dll +0 -0
  161. data/lib/net-2.0/tests/nunit-gui.tests.dll +0 -0
  162. data/lib/net-2.0/tests/nunit.core.tests.dll +0 -0
  163. data/lib/net-2.0/tests/nunit.fixtures.tests.dll +0 -0
  164. data/lib/net-2.0/tests/nunit.framework.dll +0 -0
  165. data/lib/net-2.0/tests/nunit.framework.tests.dll +0 -0
  166. data/lib/net-2.0/tests/nunit.mocks.tests.dll +0 -0
  167. data/lib/net-2.0/tests/nunit.uiexception.tests.dll +0 -0
  168. data/lib/net-2.0/tests/nunit.uikit.tests.dll +0 -0
  169. data/lib/net-2.0/tests/nunit.util.tests.dll +0 -0
  170. data/lib/net-2.0/tests/test-assembly.dll +0 -0
  171. data/lib/net-2.0/tests/test-utilities.dll +0 -0
  172. data/lib/net-2.0/tests/timing-tests.dll +0 -0
  173. metadata +9 -8
  174. data/lib/net-2.0/lib/Failure.jpg +0 -0
  175. data/lib/net-2.0/lib/Gray.jpg +0 -0
  176. data/lib/net-2.0/lib/Ignored.jpg +0 -0
  177. data/lib/net-2.0/lib/Success.jpg +0 -0
data/docs/repeat.html CHANGED
@@ -35,7 +35,7 @@
35
35
  <!-- Submenu -->
36
36
  <div id="subnav">
37
37
  <ul>
38
- <li><a href="index.html">NUnit 2.5</a></li>
38
+ <li><a href="index.html">NUnit 2.5.1</a></li>
39
39
  <ul>
40
40
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
41
41
  <li><a href="assertions.html">Assertions</a></li>
@@ -84,7 +84,7 @@ namespace NUnit.Tests
84
84
  <!-- Submenu -->
85
85
  <div id="subnav">
86
86
  <ul>
87
- <li><a href="index.html">NUnit 2.5</a></li>
87
+ <li><a href="index.html">NUnit 2.5.1</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>
@@ -83,7 +83,7 @@ public class AnotherFixture
83
83
  <!-- Submenu -->
84
84
  <div id="subnav">
85
85
  <ul>
86
- <li><a href="index.html">NUnit 2.5</a></li>
86
+ <li><a href="index.html">NUnit 2.5.1</a></li>
87
87
  <ul>
88
88
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
89
89
  <li><a href="assertions.html">Assertions</a></li>
@@ -84,7 +84,7 @@ public class AnotherFixture
84
84
  <!-- Submenu -->
85
85
  <div id="subnav">
86
86
  <ul>
87
- <li><a href="index.html">NUnit 2.5</a></li>
87
+ <li><a href="index.html">NUnit 2.5.1</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>
@@ -84,7 +84,7 @@ public class AnotherFixture
84
84
  <!-- Submenu -->
85
85
  <div id="subnav">
86
86
  <ul>
87
- <li><a href="index.html">NUnit 2.5</a></li>
87
+ <li><a href="index.html">NUnit 2.5.1</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>
@@ -57,7 +57,7 @@ Assert.That( ex3, Is.Not.SameAs( ex1 ) );
57
57
  <!-- Submenu -->
58
58
  <div id="subnav">
59
59
  <ul>
60
- <li><a href="index.html">NUnit 2.5</a></li>
60
+ <li><a href="index.html">NUnit 2.5.1</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/samples.html CHANGED
@@ -97,7 +97,7 @@ removed.
97
97
  <!-- Submenu -->
98
98
  <div id="subnav">
99
99
  <ul>
100
- <li><a href="index.html">NUnit 2.5</a></li>
100
+ <li><a href="index.html">NUnit 2.5.1</a></li>
101
101
  <ul>
102
102
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
103
103
  <li><a href="assertions.html">Assertions</a></li>
data/docs/sequential.html CHANGED
@@ -63,7 +63,7 @@ public void MyTest(
63
63
  <!-- Submenu -->
64
64
  <div id="subnav">
65
65
  <ul>
66
- <li><a href="index.html">NUnit 2.5</a></li>
66
+ <li><a href="index.html">NUnit 2.5.1</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/setCulture.html CHANGED
@@ -127,7 +127,7 @@ public class FrenchCultureTests
127
127
  <!-- Submenu -->
128
128
  <div id="subnav">
129
129
  <ul>
130
- <li><a href="index.html">NUnit 2.5</a></li>
130
+ <li><a href="index.html">NUnit 2.5.1</a></li>
131
131
  <ul>
132
132
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
133
133
  <li><a href="assertions.html">Assertions</a></li>
@@ -49,6 +49,12 @@ replaced the older tabbed format.</p>
49
49
  <p>The <b>Display ... files in list</b> TextBox allows the user to choose the number
50
50
  of entries to display in the recent files list.
51
51
 
52
+ <p>Normally, NUnit checks that project files still exist before
53
+ displaying them in the recent files list. This can cause long delays if the
54
+ file is on a network connection that is no longer available. Unchecking
55
+ <b>Check that files exist before listing</b> will avoid this delay, so
56
+ long as the missing file is not actually selected.
57
+
52
58
  <p>If <b>Load most recent project at startup</b> is checked, the GUI will load the
53
59
  last file opened unless it is run with a specific filename or with the
54
60
  <code>/noload</code> parameter.</p>
@@ -256,7 +262,7 @@ and solutions and add Visual Studio projects to existing test projects.</p>
256
262
  <!-- Submenu -->
257
263
  <div id="subnav">
258
264
  <ul>
259
- <li><a href="index.html">NUnit 2.5</a></li>
265
+ <li><a href="index.html">NUnit 2.5.1</a></li>
260
266
  <ul>
261
267
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
262
268
  <li><a href="assertions.html">Assertions</a></li>
data/docs/setup.html CHANGED
@@ -175,7 +175,7 @@ public class SuccessTests
175
175
  <!-- Submenu -->
176
176
  <div id="subnav">
177
177
  <ul>
178
- <li><a href="index.html">NUnit 2.5</a></li>
178
+ <li><a href="index.html">NUnit 2.5.1</a></li>
179
179
  <ul>
180
180
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
181
181
  <li><a href="assertions.html">Assertions</a></li>
@@ -152,7 +152,7 @@ public class MySetUpClass
152
152
  <!-- Submenu -->
153
153
  <div id="subnav">
154
154
  <ul>
155
- <li><a href="index.html">NUnit 2.5</a></li>
155
+ <li><a href="index.html">NUnit 2.5.1</a></li>
156
156
  <ul>
157
157
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
158
158
  <li><a href="assertions.html">Assertions</a></li>
@@ -65,7 +65,7 @@ StringAssert.IsMatch( string regexPattern, string actual,
65
65
  <!-- Submenu -->
66
66
  <div id="subnav">
67
67
  <ul>
68
- <li><a href="index.html">NUnit 2.5</a></li>
68
+ <li><a href="index.html">NUnit 2.5.1</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>
@@ -27,47 +27,178 @@
27
27
  <h2>String Constraints (NUnit 2.4)</h2>
28
28
 
29
29
  <p>String constraints perform tests that are specific to strings.
30
- The following string constraints are provided.
30
+ Attempting to test a non-string value with a string constraint
31
+ is an error and gives an exception.
31
32
 
32
- <table class="constraints">
33
- <tr><th>Syntax Helpers</th><th>Constructor</th><th>Operation</th></tr>
34
- <tr><td>Text.Contains( string )<br>Text.DoesNotContain( string )</td><td>SubstringConstraint( string )</td></td><td>tests for a substring</td></tr>
35
- <tr><td>Text.StartsWith( string )<br>Text.DoesNotStartWith( string )</td><td>StartsWithConstraint( string )</td></td><td>tests for an initial string</td></tr>
36
- <tr><td>Text.EndsWith( string )<br>Text.DoesNotEndWith( string )</td><td>EndsWithConstraint( string )</td></td><td>tests for an ending string</td></tr>
37
- <tr><td>Text.Matches( string )<br>Text.DoesNotMatch( string )</td><td>RegexConstraint( string )</td></td><td>tests that a pattern is matched</td></tr>
38
- </table>
33
+ <p>The <b>Text</b> prefix is deprecated beginning with NUnit 2.5.1
34
+ and will be removed in NUnit 3.0.
35
+
36
+ <h3>SubstringConstraint</h3>
39
37
 
40
- <h4>Examples</h4>
38
+ <h4>Action</h4>
39
+ <p>Tests for a substring.
41
40
 
42
- <div class="code" style="width: 36em"><pre>
41
+ <h4>Constructor</h4>
42
+ <div class="code"><pre>
43
+ SubstringConstraint(string expected)
44
+ </pre></div>
45
+
46
+ <h4>Syntax</h4>
47
+ <div class="code"><pre>
48
+ Is.StringContaining(string expected)
49
+ ContainsSubstring(string expected)
50
+ Contains(string expected)
51
+ [Obsolete] Text.Contains(string expected)
52
+ [Obsolete] Text.DoesNotContain(string expected)
53
+ </pre></div>
54
+
55
+ <h4>Modifiers</h4>
56
+ <div class="code"><pre>
57
+ ...IgnoreCase
58
+ </pre></div>
59
+
60
+ <h4>Examples of Use</h4>
61
+ <div class="code"><pre>
43
62
  string phrase = "Make your tests fail before passing!"
44
63
 
45
- Assert.That( phrase, Text.Contains( "tests fail" ) );
46
- Assert.That( phrase, Text.Contains( "make" ).IgnoreCase );
64
+ Assert.That( phrase, Is.StringContaining( "tests fail" ) );
65
+ Assert.That( phrase, Is.Not.StringContaining( "tests pass" ) );
66
+ Assert.That( phrase, Is.StringContaining( "make" ).IgnoreCase );
67
+ Expect (phrase, Contains.Substring( "make" ).IgnoreCase );
68
+ </pre></div>
69
+
70
+ <h4>Notes</h4>
71
+ <ol>
72
+ <li><b>ContainsSubstring</b> and <b>Contains</b> may appear only in the
73
+ body of a constraint expression or when the inherited syntax is used.
74
+ <li><b>Contains</b> is not actually a string constraint but is converted
75
+ to one when a string is being tested.
76
+ </ol>
77
+
78
+ <h3>StartsWithConstraint</h3>
79
+
80
+ <h4>Action</h4>
81
+ <p>Tests for an initial string.
82
+
83
+ <h4>Constructor</h4>
84
+ <div class="code"><pre>
85
+ StartsWithConstraint(string expected)
86
+ </pre></div>
87
+
88
+ <h4>Syntax</h4>
89
+ <div class="code"><pre>
90
+ Is.StringStarting(string expected)
91
+ StartsWith(string expected)
92
+ [Obsolete] Text.StartsWith(string expected)
93
+ [Obsolete] Text.DoesNotStartWith(string expected)
94
+ </pre></div>
95
+
96
+ <h4>Modifiers</h4>
97
+ <div class="code"><pre>
98
+ ...IgnoreCase
99
+ </pre></div>
100
+
101
+ <h4>Examples of Use</h4>
102
+ <div class="code"><pre>
103
+ string phrase = "Make your tests fail before passing!"
104
+
105
+ Assert.That( phrase, Is.StringStarting( "Make" ) );
106
+ Assert.That( phrase, Is.Not.StringStarting( "Break" ) );
107
+ Assert.That( phrase, Has.Length.GreaterThan(10)
108
+ .And.Not.StartsWith( "Break" ) );
109
+ Expect( phrase, StartsWith( "Make" ) );
110
+ </pre></div>
111
+
112
+ <h4>Notes</h4>
113
+ <ol>
114
+ <li><b>StartsWith</b> may appear only in the body of a constraint
115
+ expression or when the inherited syntax is used.
116
+ </ol>
47
117
 
48
- Assert.That( phrase, Text.StartsWith( "Make" ) );
49
- Assert.That( phrase, Text.Not.StartsWith( "Break" ) );
50
- Assert.That( phrase, Text.DoesNotStartWith( "Break" ) );
118
+ <h3>EndsWithConstraint</h3>
51
119
 
52
- Assert.That( phrase, Text.EndsWith( "!" ) );
53
- Assert.That( phrase, Text.EndsWith( "PASSING!" ).IgnoreCase );
120
+ <h4>Action</h4>
121
+ <p>Tests for an ending string.
54
122
 
55
- Assert.That( phrase, Text.Matches( "Make.*tests.*pass" ) );
56
- Assert.That( phrase, Text.Not.Matches( "your.*passing.*tests" ) );
57
- Assert.That( phrase, Text.DoesNotMatch( "your.*passing.*tests" ) );
123
+ <h4>Constructor</h4>
124
+ <div class="code"><pre>
125
+ EndsWithConstraint(string expected)
126
+ </pre></div>
127
+
128
+ <h4>Syntax</h4>
129
+ <div class="code"><pre>
130
+ Is.StringEnding(string expected)
131
+ EndsWith(string expected)
132
+ [Obsolete] Text.EndsWith(string expected)
133
+ [Obsolete] Text.DoesNotEndWith(string expected)
134
+ </pre></div>
58
135
 
59
- // Using Inheritance
60
- Expect( phrase, Contains( "make" ).IgnoreCase );
136
+ <h4>Modifiers</h4>
137
+ <div class="code"><pre>
138
+ ...IgnoreCase
139
+ </pre></div>
140
+
141
+ <h4>Examples of Use</h4>
142
+ <div class="code"><pre>
143
+ string phrase = "Make your tests fail before passing!"
144
+
145
+ Assert.That( phrase, Is.StringEnding( "!" ) );
146
+ Assert.That( phrase, Is.StringEnding( "PASSING!" ).IgnoreCase );
61
147
  Expect( phrase, EndsWith( "!" ) );
148
+ </pre></div>
149
+
150
+ <h4>Notes</h4>
151
+ <ol>
152
+ <li><b>EndsWith</b> may appear only in the body of a constraint
153
+ expression or when the inherited syntax is used.
154
+ </ol>
155
+
156
+ <h3>RegexConstraint</h3>
157
+
158
+ <h4>Action</h4>
159
+ <p>Tests that a pattern is matched.
160
+
161
+ <h4>Constructor</h4>
162
+ <div class="code"><pre>
163
+ RegexConstraint(string pattern)
164
+ </pre></div>
165
+
166
+ <h4>Syntax</h4>
167
+ <div class="code"><pre>
168
+ Is.StringMatching(string pattern)
169
+ Matches(string pattern)
170
+ [Obsolete] Text.Matches(string pattern)
171
+ [Obsolete] Text.DoesNotMatch(string pattern)
172
+ </pre></div>
173
+
174
+ <h4>Modifiers</h4>
175
+ <div class="code"><pre>
176
+ ...IgnoreCase
177
+ </pre></div>
178
+
179
+ <h4>Examples of Use</h4>
180
+ <div class="code"><pre>
181
+ string phrase = "Make your tests fail before passing!"
182
+
183
+ Assert.That( phrase, Is.StringMatching( "Make.*tests.*pass" ) );
184
+ Assert.That( phrase, Is.Not.StringMatching( "your.*passing.*tests" ) );
185
+ Assert.That( phrase, Has.Length.GreaterThan(10)
186
+ .And.Not.Matches( "your.*passing.*tests" ) );
62
187
  Expect( phrase, Matches( "Make.*pass" ) );
63
188
  </pre></div>
64
189
 
190
+ <h4>Notes</h4>
191
+ <ol>
192
+ <li><b>Matches</b> may appear only in the body of a constraint
193
+ expression or when the inherited syntax is used.
194
+ </ol>
195
+
65
196
  </div>
66
197
 
67
198
  <!-- Submenu -->
68
199
  <div id="subnav">
69
200
  <ul>
70
- <li><a href="index.html">NUnit 2.5</a></li>
201
+ <li><a href="index.html">NUnit 2.5.1</a></li>
71
202
  <ul>
72
203
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
73
204
  <li><a href="assertions.html">Assertions</a></li>
data/docs/suite.html CHANGED
@@ -174,7 +174,7 @@ of the planning for future NUnit releases.
174
174
  <!-- Submenu -->
175
175
  <div id="subnav">
176
176
  <ul>
177
- <li><a href="index.html">NUnit 2.5</a></li>
177
+ <li><a href="index.html">NUnit 2.5.1</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>
@@ -61,7 +61,7 @@ build a fixture using the provided Type.
61
61
  <!-- Submenu -->
62
62
  <div id="subnav">
63
63
  <ul>
64
- <li><a href="index.html">NUnit 2.5</a></li>
64
+ <li><a href="index.html">NUnit 2.5.1</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/teardown.html CHANGED
@@ -175,7 +175,7 @@ public class SuccessTests
175
175
  <!-- Submenu -->
176
176
  <div id="subnav">
177
177
  <ul>
178
- <li><a href="index.html">NUnit 2.5</a></li>
178
+ <li><a href="index.html">NUnit 2.5.1</a></li>
179
179
  <ul>
180
180
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
181
181
  <li><a href="assertions.html">Assertions</a></li>
data/docs/test.html CHANGED
@@ -148,7 +148,7 @@ public class SuccessTests
148
148
  <!-- Submenu -->
149
149
  <div id="subnav">
150
150
  <ul>
151
- <li><a href="index.html">NUnit 2.5</a></li>
151
+ <li><a href="index.html">NUnit 2.5.1</a></li>
152
152
  <ul>
153
153
  <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
154
154
  <li><a href="assertions.html">Assertions</a></li>
data/docs/testCase.html CHANGED
@@ -98,62 +98,62 @@ the method name and the arguments provided
98
98
 
99
99
  <!-- Submenu -->
100
100
  <div id="subnav">
101
- <ul>
102
- <li><a href="index.html">NUnit 2.5</a></li>
103
- <ul>
104
- <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
105
- <li><a href="assertions.html">Assertions</a></li>
106
- <li><a href="constraintModel.html">Constraints</a></li>
107
- <li><a href="attributes.html">Attributes</a></li>
108
- <ul>
109
- <li><a href="category.html">Category</a></li>
110
- <li><a href="combinatorial.html">Combinatorial</a></li>
111
- <li><a href="culture.html">Culture</a></li>
112
- <li><a href="datapoint.html">Datapoint(s)</a></li>
113
- <li><a href="description.html">Description</a></li>
114
- <li><a href="exception.html">Exception</a></li>
115
- <li><a href="explicit.html">Explicit</a></li>
116
- <li><a href="ignore.html">Ignore</a></li>
117
- <li><a href="maxtime.html">Maxtime</a></li>
118
- <li><a href="pairwise.html">Pairwise</a></li>
119
- <li><a href="platform.html">Platform</a></li>
120
- <li><a href="property.html">Property</a></li>
121
- <li><a href="random.html">Random</a></li>
122
- <li><a href="range.html">Range</a></li>
123
- <li><a href="repeat.html">Repeat</a></li>
124
- <li><a href="requiredAddin.html">RequiredAddin</a></li>
125
- <li><a href="requiresMTA.html">Requires&nbsp;MTA</a></li>
126
- <li><a href="requiresSTA.html">Requires&nbsp;STA</a></li>
127
- <li><a href="requiresThread.html">Requires&nbsp;Thread</a></li>
128
- <li><a href="sequential.html">Sequential</a></li>
129
- <li><a href="setCulture.html">SetCulture</a></li>
130
- <li><a href="setup.html">Setup</a></li>
131
- <li><a href="setupFixture.html">SetupFixture</a></li>
132
- <li><a href="suite.html">Suite</a></li>
133
- <li><a href="teardown.html">Teardown</a></li>
134
- <li><a href="test.html">Test</a></li>
135
- <li id="current"><a href="testCase.html">TestCase</a></li>
136
- <li><a href="testCaseSource.html">TestCaseSource</a></li>
137
- <li><a href="testFixture.html">TestFixture</a></li>
138
- <li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
139
- <li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
140
- <li><a href="theory.html">Theory</a></li>
141
- <li><a href="timeout.html">Timeout</a></li>
142
- <li><a href="values.html">Values</a></li>
143
- <li><a href="valueSource.html">ValueSource</a></li>
144
- </ul>
145
- <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
146
- <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
147
- <li><a href="configFiles.html">Configuration&nbsp;Files</a></li>
148
- <li><a href="pnunit.html">PNUnit</a></li>
149
- <li><a href="multiAssembly.html">Multiple&nbsp;Assemblies</a></li>
150
- <li><a href="vsSupport.html">Visual&nbsp;Studio&nbsp;Support</a></li>
151
- <li><a href="extensibility.html">Extensibility</a></li>
152
- <li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
153
- <li><a href="samples.html">Samples</a></li>
154
- <li><a href="license.html">License</a></li>
155
- </ul>
156
- </ul>
101
+ <ul>
102
+ <li><a href="index.html">NUnit 2.5.1</a></li>
103
+ <ul>
104
+ <li><a href="getStarted.html">Getting&nbsp;Started</a></li>
105
+ <li><a href="assertions.html">Assertions</a></li>
106
+ <li><a href="constraintModel.html">Constraints</a></li>
107
+ <li><a href="attributes.html">Attributes</a></li>
108
+ <ul>
109
+ <li><a href="category.html">Category</a></li>
110
+ <li><a href="combinatorial.html">Combinatorial</a></li>
111
+ <li><a href="culture.html">Culture</a></li>
112
+ <li><a href="datapoint.html">Datapoint(s)</a></li>
113
+ <li><a href="description.html">Description</a></li>
114
+ <li><a href="exception.html">Exception</a></li>
115
+ <li><a href="explicit.html">Explicit</a></li>
116
+ <li><a href="ignore.html">Ignore</a></li>
117
+ <li><a href="maxtime.html">Maxtime</a></li>
118
+ <li><a href="pairwise.html">Pairwise</a></li>
119
+ <li><a href="platform.html">Platform</a></li>
120
+ <li><a href="property.html">Property</a></li>
121
+ <li><a href="random.html">Random</a></li>
122
+ <li><a href="range.html">Range</a></li>
123
+ <li><a href="repeat.html">Repeat</a></li>
124
+ <li><a href="requiredAddin.html">RequiredAddin</a></li>
125
+ <li><a href="requiresMTA.html">Requires&nbsp;MTA</a></li>
126
+ <li><a href="requiresSTA.html">Requires&nbsp;STA</a></li>
127
+ <li><a href="requiresThread.html">Requires&nbsp;Thread</a></li>
128
+ <li><a href="sequential.html">Sequential</a></li>
129
+ <li><a href="setCulture.html">SetCulture</a></li>
130
+ <li><a href="setup.html">Setup</a></li>
131
+ <li><a href="setupFixture.html">SetupFixture</a></li>
132
+ <li><a href="suite.html">Suite</a></li>
133
+ <li><a href="teardown.html">Teardown</a></li>
134
+ <li><a href="test.html">Test</a></li>
135
+ <li id="current"><a href="testCase.html">TestCase</a></li>
136
+ <li><a href="testCaseSource.html">TestCaseSource</a></li>
137
+ <li><a href="testFixture.html">TestFixture</a></li>
138
+ <li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
139
+ <li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
140
+ <li><a href="theory.html">Theory</a></li>
141
+ <li><a href="timeout.html">Timeout</a></li>
142
+ <li><a href="values.html">Values</a></li>
143
+ <li><a href="valueSource.html">ValueSource</a></li>
144
+ </ul>
145
+ <li><a href="nunit-console.html">Console&nbsp;Runner</a></li>
146
+ <li><a href="nunit-gui.html">Gui&nbsp;Runner</a></li>
147
+ <li><a href="configFiles.html">Configuration&nbsp;Files</a></li>
148
+ <li><a href="pnunit.html">PNUnit</a></li>
149
+ <li><a href="multiAssembly.html">Multiple&nbsp;Assemblies</a></li>
150
+ <li><a href="vsSupport.html">Visual&nbsp;Studio&nbsp;Support</a></li>
151
+ <li><a href="extensibility.html">Extensibility</a></li>
152
+ <li><a href="releaseNotes.html">Release&nbsp;Notes</a></li>
153
+ <li><a href="samples.html">Samples</a></li>
154
+ <li><a href="license.html">License</a></li>
155
+ </ul>
156
+ </ul>
157
157
  </div>
158
158
  <!-- End of Submenu -->
159
159