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.
- data/docs/addinsDialog.html +1 -1
- data/docs/assertions.html +1 -1
- data/docs/attributes.html +58 -58
- data/docs/category.html +1 -1
- data/docs/collectionAssert.html +1 -1
- data/docs/collectionConstraints.html +1 -1
- data/docs/combinatorial.html +3 -3
- data/docs/comparisonAsserts.html +1 -1
- data/docs/comparisonConstraints.html +1 -1
- data/docs/compoundConstraints.html +1 -1
- data/docs/conditionAsserts.html +1 -1
- data/docs/conditionConstraints.html +1 -1
- data/docs/configEditor.html +1 -1
- data/docs/configFiles.html +1 -1
- data/docs/consoleCommandLine.html +11 -5
- data/docs/constraintModel.html +1 -1
- data/docs/contextMenu.html +1 -1
- data/docs/culture.html +1 -1
- data/docs/customConstraints.html +24 -24
- data/docs/datapoint.html +1 -1
- data/docs/datapointProviders.html +29 -5
- data/docs/delayedConstraint.html +1 -1
- data/docs/description.html +1 -1
- data/docs/directoryAssert.html +1 -1
- data/docs/equalConstraint.html +1 -1
- data/docs/equalityAsserts.html +1 -1
- data/docs/eventListeners.html +1 -1
- data/docs/exception.html +56 -56
- data/docs/exceptionAsserts.html +5 -5
- data/docs/explicit.html +1 -1
- data/docs/extensibility.html +1 -1
- data/docs/extensionTips.html +1 -1
- data/docs/fileAssert.html +1 -1
- data/docs/fixtureSetup.html +1 -1
- data/docs/fixtureTeardown.html +1 -1
- data/docs/getStarted.html +1 -1
- data/docs/guiCommandLine.html +1 -1
- data/docs/identityAsserts.html +1 -1
- data/docs/ignore.html +1 -1
- data/docs/img/generalSettings.jpg +0 -0
- data/docs/img/gui-screenshot.jpg +0 -0
- data/docs/img/gui-verify.jpg +0 -0
- data/docs/img/miniGui.jpg +0 -0
- data/docs/index.html +3 -3
- data/docs/installation.html +2 -2
- data/docs/license.html +3 -3
- data/docs/listMapper.html +1 -1
- data/docs/mainMenu.html +1 -1
- data/docs/maxtime.html +1 -1
- data/docs/multiAssembly.html +1 -1
- data/docs/nunit-console.html +1 -1
- data/docs/nunit-gui.html +1 -1
- data/docs/nunitAddins.html +1 -1
- data/docs/pairwise.html +1 -1
- data/docs/parameterizedTests.html +20 -1
- data/docs/pathConstraints.html +1 -1
- data/docs/platform.html +1 -1
- data/docs/pnunit.html +1 -1
- data/docs/projectEditor.html +1 -1
- data/docs/property.html +1 -1
- data/docs/propertyConstraint.html +1 -1
- data/docs/quickStart.html +1 -1
- data/docs/random.html +1 -1
- data/docs/range.html +1 -1
- data/docs/releaseNotes.html +824 -411
- data/docs/repeat.html +1 -1
- data/docs/requiredAddin.html +1 -1
- data/docs/requiresMTA.html +1 -1
- data/docs/requiresSTA.html +1 -1
- data/docs/requiresThread.html +1 -1
- data/docs/sameasConstraint.html +1 -1
- data/docs/samples.html +1 -1
- data/docs/sequential.html +1 -1
- data/docs/setCulture.html +1 -1
- data/docs/settingsDialog.html +7 -1
- data/docs/setup.html +1 -1
- data/docs/setupFixture.html +1 -1
- data/docs/stringAssert.html +1 -1
- data/docs/stringConstraints.html +154 -23
- data/docs/suite.html +1 -1
- data/docs/suiteBuilders.html +1 -1
- data/docs/teardown.html +1 -1
- data/docs/test.html +1 -1
- data/docs/testCase.html +56 -56
- data/docs/testCaseSource.html +24 -11
- data/docs/testDecorators.html +1 -1
- data/docs/testFixture.html +11 -11
- data/docs/testProperties.html +1 -1
- data/docs/testcaseBuilders.html +1 -1
- data/docs/testcaseProviders.html +28 -5
- data/docs/theory.html +1 -1
- data/docs/throwsConstraint.html +46 -17
- data/docs/timeout.html +1 -1
- data/docs/typeAsserts.html +1 -1
- data/docs/typeConstraints.html +1 -1
- data/docs/upgrade.html +1 -1
- data/docs/utilityAsserts.html +1 -1
- data/docs/valueSource.html +19 -10
- data/docs/values.html +3 -3
- data/docs/vsSupport.html +1 -1
- data/lib/net-1.1/framework/nunit.framework.dll +0 -0
- data/lib/net-1.1/framework/nunit.framework.xml +105 -19
- data/lib/net-1.1/framework/nunit.mocks.dll +0 -0
- data/lib/net-1.1/framework/pnunit.framework.dll +0 -0
- data/lib/net-1.1/lib/nunit-console-runner.dll +0 -0
- data/lib/net-1.1/lib/nunit.core.dll +0 -0
- data/lib/net-1.1/lib/nunit.core.interfaces.dll +0 -0
- data/lib/net-1.1/lib/nunit.fixtures.dll +0 -0
- data/lib/net-1.1/lib/nunit.util.dll +0 -0
- data/lib/net-1.1/nunit-agent.exe +0 -0
- data/lib/net-1.1/nunit-console.exe +0 -0
- data/lib/net-1.1/nunit.framework.dll +0 -0
- data/lib/net-1.1/pnunit-agent.exe +0 -0
- data/lib/net-1.1/pnunit-launcher.exe +0 -0
- data/lib/net-1.1/pnunit.framework.dll +0 -0
- data/lib/net-1.1/pnunit.tests.dll +0 -0
- data/lib/net-1.1/tests/loadtest-assembly.dll +0 -0
- data/lib/net-1.1/tests/mock-assembly.dll +0 -0
- data/lib/net-1.1/tests/nonamespace-assembly.dll +0 -0
- data/lib/net-1.1/tests/nunit-console.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.core.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.fixtures.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.framework.dll +0 -0
- data/lib/net-1.1/tests/nunit.framework.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.mocks.tests.dll +0 -0
- data/lib/net-1.1/tests/nunit.util.tests.dll +0 -0
- data/lib/net-1.1/tests/test-assembly.dll +0 -0
- data/lib/net-1.1/tests/test-utilities.dll +0 -0
- data/lib/net-1.1/tests/timing-tests.dll +0 -0
- data/lib/net-2.0/framework/nunit.framework.dll +0 -0
- data/lib/net-2.0/framework/nunit.framework.xml +113 -19
- data/lib/net-2.0/framework/nunit.mocks.dll +0 -0
- data/lib/net-2.0/framework/pnunit.framework.dll +0 -0
- data/lib/net-2.0/lib/Failure.png +0 -0
- data/lib/net-2.0/lib/Ignored.png +0 -0
- data/lib/net-2.0/lib/Inconclusive.png +0 -0
- data/lib/net-2.0/lib/Skipped.png +0 -0
- data/lib/net-2.0/lib/Success.png +0 -0
- data/lib/net-2.0/lib/nunit-console-runner.dll +0 -0
- data/lib/net-2.0/lib/nunit-gui-runner.dll +0 -0
- data/lib/net-2.0/lib/nunit.core.dll +0 -0
- data/lib/net-2.0/lib/nunit.core.interfaces.dll +0 -0
- data/lib/net-2.0/lib/nunit.fixtures.dll +0 -0
- data/lib/net-2.0/lib/nunit.uiexception.dll +0 -0
- data/lib/net-2.0/lib/nunit.uikit.dll +0 -0
- data/lib/net-2.0/lib/nunit.util.dll +0 -0
- data/lib/net-2.0/nunit-agent.exe +0 -0
- data/lib/net-2.0/nunit-console-x86.exe +0 -0
- data/lib/net-2.0/nunit-console.exe +0 -0
- data/lib/net-2.0/nunit-x86.exe +0 -0
- data/lib/net-2.0/nunit.exe +0 -0
- data/lib/net-2.0/nunit.framework.dll +0 -0
- data/lib/net-2.0/pnunit-agent.exe +0 -0
- data/lib/net-2.0/pnunit-launcher.exe +0 -0
- data/lib/net-2.0/pnunit.framework.dll +0 -0
- data/lib/net-2.0/pnunit.tests.dll +0 -0
- data/lib/net-2.0/tests/loadtest-assembly.dll +0 -0
- data/lib/net-2.0/tests/mock-assembly.dll +0 -0
- data/lib/net-2.0/tests/nonamespace-assembly.dll +0 -0
- data/lib/net-2.0/tests/nunit-console.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit-gui.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.core.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.fixtures.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.framework.dll +0 -0
- data/lib/net-2.0/tests/nunit.framework.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.mocks.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.uiexception.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.uikit.tests.dll +0 -0
- data/lib/net-2.0/tests/nunit.util.tests.dll +0 -0
- data/lib/net-2.0/tests/test-assembly.dll +0 -0
- data/lib/net-2.0/tests/test-utilities.dll +0 -0
- data/lib/net-2.0/tests/timing-tests.dll +0 -0
- metadata +9 -8
- data/lib/net-2.0/lib/Failure.jpg +0 -0
- data/lib/net-2.0/lib/Gray.jpg +0 -0
- data/lib/net-2.0/lib/Ignored.jpg +0 -0
- 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 Started</a></li>
|
41
41
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/requiredAddin.html
CHANGED
@@ -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 Started</a></li>
|
90
90
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/requiresMTA.html
CHANGED
@@ -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 Started</a></li>
|
89
89
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/requiresSTA.html
CHANGED
@@ -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 Started</a></li>
|
90
90
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/requiresThread.html
CHANGED
@@ -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 Started</a></li>
|
90
90
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/sameasConstraint.html
CHANGED
@@ -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 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 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 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 Started</a></li>
|
133
133
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/settingsDialog.html
CHANGED
@@ -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 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 Started</a></li>
|
181
181
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/setupFixture.html
CHANGED
@@ -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 Started</a></li>
|
158
158
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/stringAssert.html
CHANGED
@@ -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 Started</a></li>
|
71
71
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/stringConstraints.html
CHANGED
@@ -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
|
-
|
30
|
+
Attempting to test a non-string value with a string constraint
|
31
|
+
is an error and gives an exception.
|
31
32
|
|
32
|
-
<
|
33
|
-
|
34
|
-
|
35
|
-
<
|
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>
|
38
|
+
<h4>Action</h4>
|
39
|
+
<p>Tests for a substring.
|
41
40
|
|
42
|
-
<
|
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,
|
46
|
-
Assert.That( phrase,
|
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
|
-
|
49
|
-
Assert.That( phrase, Text.Not.StartsWith( "Break" ) );
|
50
|
-
Assert.That( phrase, Text.DoesNotStartWith( "Break" ) );
|
118
|
+
<h3>EndsWithConstraint</h3>
|
51
119
|
|
52
|
-
|
53
|
-
|
120
|
+
<h4>Action</h4>
|
121
|
+
<p>Tests for an ending string.
|
54
122
|
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
|
60
|
-
|
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 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 Started</a></li>
|
180
180
|
<li><a href="assertions.html">Assertions</a></li>
|
data/docs/suiteBuilders.html
CHANGED
@@ -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 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 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 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 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 MTA</a></li>
|
126
|
-
<li><a href="requiresSTA.html">Requires STA</a></li>
|
127
|
-
<li><a href="requiresThread.html">Requires 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 Runner</a></li>
|
146
|
-
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
147
|
-
<li><a href="configFiles.html">Configuration Files</a></li>
|
148
|
-
<li><a href="pnunit.html">PNUnit</a></li>
|
149
|
-
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
150
|
-
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
151
|
-
<li><a href="extensibility.html">Extensibility</a></li>
|
152
|
-
<li><a href="releaseNotes.html">Release 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 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 MTA</a></li>
|
126
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
127
|
+
<li><a href="requiresThread.html">Requires 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 Runner</a></li>
|
146
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
147
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
148
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
149
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
150
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
151
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
152
|
+
<li><a href="releaseNotes.html">Release 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
|
|