nunit 2.4.8.0 → 2.5.0.9122
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/addinsDialog.html +36 -6
- data/docs/assertions.html +31 -12
- data/docs/attributes.html +59 -36
- data/docs/category.html +32 -9
- data/docs/collectionAssert.html +30 -12
- data/docs/collectionConstraints.html +242 -44
- data/docs/combinatorial.html +130 -0
- data/docs/comparisonAsserts.html +12 -9
- data/docs/comparisonConstraints.html +159 -25
- data/docs/compoundConstraints.html +12 -9
- data/docs/conditionAsserts.html +36 -12
- data/docs/conditionConstraints.html +131 -25
- data/docs/configEditor.html +10 -5
- data/docs/configFiles.html +5 -6
- data/docs/consoleCommandLine.html +51 -24
- data/docs/constraintModel.html +56 -19
- data/docs/contextMenu.html +10 -5
- data/docs/culture.html +32 -9
- data/docs/customConstraints.html +53 -37
- data/docs/datapoint.html +124 -0
- data/docs/datapointProviders.html +105 -0
- data/docs/delayedConstraint.html +98 -0
- data/docs/description.html +32 -9
- data/docs/directoryAssert.html +151 -0
- data/docs/equalConstraint.html +167 -47
- data/docs/equalityAsserts.html +12 -9
- data/docs/eventListeners.html +110 -0
- data/docs/exception.html +61 -36
- data/docs/exceptionAsserts.html +210 -0
- data/docs/explicit.html +32 -9
- data/docs/extensibility.html +8 -8
- data/docs/extensionTips.html +100 -0
- data/docs/fileAssert.html +12 -9
- data/docs/files/TestResult.xml +99 -67
- data/docs/fixtureSetup.html +60 -18
- data/docs/fixtureTeardown.html +56 -17
- data/docs/getStarted.html +9 -4
- data/docs/guiCommandLine.html +10 -5
- data/docs/identityAsserts.html +12 -9
- data/docs/ignore.html +32 -9
- data/docs/img/addinsDialog.JPG +0 -0
- data/docs/img/advancedSettings.jpg +0 -0
- data/docs/img/assembliesTab.jpg +0 -0
- data/docs/img/assemblyReloadSettings.JPG +0 -0
- data/docs/img/configEditor.jpg +0 -0
- data/docs/img/console-mock.jpg +0 -0
- data/docs/img/generalSettings.jpg +0 -0
- data/docs/img/generalTab.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/img/testLoadSettings.jpg +0 -0
- data/docs/img/testOutputSettings.jpg +0 -0
- data/docs/img/testProperties.jpg +0 -0
- data/docs/img/testResultSettings.JPG +0 -0
- data/docs/img/textOutputSettings.jpg +0 -0
- data/docs/img/treeDisplaySettings.jpg +0 -0
- data/docs/img/visualStudioSettings.jpg +0 -0
- data/docs/index.html +15 -8
- data/docs/installation.html +33 -75
- data/docs/license.html +9 -4
- data/docs/listMapper.html +12 -9
- data/docs/mainMenu.html +18 -8
- data/docs/maxtime.html +109 -0
- data/docs/multiAssembly.html +5 -6
- data/docs/nunit-console.html +9 -4
- data/docs/nunit-gui.html +32 -15
- data/docs/nunit.css +3 -3
- data/docs/nunitAddins.html +41 -144
- data/docs/pairwise.html +114 -0
- data/docs/parameterizedTests.html +141 -0
- data/docs/pathConstraints.html +162 -0
- data/docs/platform.html +37 -9
- data/docs/pnunit.html +93 -0
- data/docs/projectEditor.html +82 -11
- data/docs/property.html +39 -10
- data/docs/propertyConstraint.html +12 -9
- data/docs/quickStart.html +9 -4
- data/docs/random.html +138 -0
- data/docs/range.html +149 -0
- data/docs/releaseDetail.html +861 -0
- data/docs/releaseNotes.html +457 -1133
- data/docs/repeat.html +104 -0
- data/docs/requiredAddin.html +153 -0
- data/docs/requiresMTA.html +152 -0
- data/docs/requiresSTA.html +153 -0
- data/docs/requiresThread.html +153 -0
- data/docs/sameasConstraint.html +23 -17
- data/docs/samples.html +12 -9
- data/docs/sequential.html +132 -0
- data/docs/setCulture.html +32 -9
- data/docs/{optionsDialog.html → settingsDialog.html} +89 -53
- data/docs/setup.html +61 -16
- data/docs/setupFixture.html +32 -9
- data/docs/stringAssert.html +15 -12
- data/docs/stringConstraints.html +12 -9
- data/docs/suite.html +32 -11
- data/docs/suiteBuilders.html +106 -0
- data/docs/teardown.html +56 -16
- data/docs/test.html +67 -18
- data/docs/testCase.html +168 -0
- data/docs/testCaseSource.html +284 -0
- data/docs/testDecorators.html +117 -0
- data/docs/testFixture.html +228 -16
- data/docs/testProperties.html +10 -5
- data/docs/testcaseBuilders.html +117 -0
- data/docs/testcaseProviders.html +122 -0
- data/docs/theory.html +208 -0
- data/docs/throwsConstraint.html +112 -0
- data/docs/timeout.html +109 -0
- data/docs/typeAsserts.html +47 -14
- data/docs/typeConstraints.html +12 -9
- data/docs/upgrade.html +23 -17
- data/docs/utilityAsserts.html +38 -16
- data/docs/valueSource.html +137 -0
- data/docs/values.html +136 -0
- data/docs/vsSupport.html +5 -6
- data/lib/net-1.1/NUnitTests.config +2 -2
- data/lib/net-1.1/NUnitTests.nunit +8 -11
- data/lib/net-1.1/agent.conf +4 -0
- data/lib/net-1.1/agent.log.conf +18 -0
- data/lib/net-1.1/framework/nunit.framework.dll +0 -0
- data/lib/net-1.1/framework/nunit.framework.xml +9321 -0
- 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/launcher.log.conf +18 -0
- data/lib/net-1.1/{fit.dll → lib/fit.dll} +0 -0
- data/lib/net-1.1/lib/log4net.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.exe.config → nunit-agent.exe.config} +21 -55
- data/lib/net-1.1/nunit-console.exe +0 -0
- data/lib/net-1.1/nunit-console.exe.config +19 -49
- 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-agent.exe.config +87 -0
- data/lib/net-1.1/pnunit-launcher.exe +0 -0
- data/lib/net-1.1/pnunit-launcher.exe.config +87 -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/runpnunit.bat +2 -0
- data/lib/net-1.1/test.conf +24 -0
- data/lib/net-1.1/{loadtest-assembly.dll → 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/{nunit.util.tests.dll → 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/NUnitTests.config +2 -2
- data/lib/net-2.0/NUnitTests.nunit +11 -11
- data/lib/net-2.0/agent.conf +4 -0
- data/lib/net-2.0/agent.log.conf +18 -0
- data/lib/net-2.0/framework/nunit.framework.dll +0 -0
- data/lib/net-2.0/framework/nunit.framework.xml +9803 -0
- 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/launcher.log.conf +18 -0
- data/lib/{net-1.1 → net-2.0/lib}/Failure.jpg +0 -0
- data/lib/net-2.0/{Success.jpg → lib/Gray.jpg} +0 -0
- data/lib/{net-1.1 → net-2.0/lib}/Ignored.jpg +0 -0
- data/lib/{net-1.1 → net-2.0/lib}/Success.jpg +0 -0
- data/lib/net-2.0/{fit.dll → lib/fit.dll} +0 -0
- data/lib/net-2.0/lib/log4net.dll +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-agent.exe.config +87 -0
- data/lib/net-2.0/nunit-console-x86.exe +0 -0
- data/lib/net-2.0/nunit-console-x86.exe.config +19 -49
- data/lib/net-2.0/nunit-console.exe +0 -0
- data/lib/net-2.0/nunit-console.exe.config +19 -49
- data/lib/net-2.0/nunit-x86.exe +0 -0
- data/lib/net-2.0/nunit-x86.exe.config +48 -74
- data/lib/net-2.0/nunit.exe +0 -0
- data/lib/net-2.0/nunit.exe.config +48 -74
- 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-agent.exe.config +87 -0
- data/lib/net-2.0/pnunit-launcher.exe +0 -0
- data/lib/net-2.0/pnunit-launcher.exe.config +87 -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/runpnunit.bat +2 -0
- data/lib/net-2.0/test.conf +24 -0
- data/lib/net-2.0/{loadtest-assembly.dll → 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/{nunit.util.tests.dll → 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 +131 -74
- data/docs/classicModel.html +0 -92
- data/docs/customAsserts.html +0 -115
- data/docs/features.html +0 -75
- data/docs/files/Thumbs.db +0 -0
- data/docs/platformSupport.html +0 -99
- data/lib/net-1.1/mock-assembly.dll +0 -0
- data/lib/net-1.1/nonamespace-assembly.dll +0 -0
- data/lib/net-1.1/notestfixtures-assembly.dll +0 -0
- data/lib/net-1.1/nunit-console-runner.dll +0 -0
- data/lib/net-1.1/nunit-console.tests.dll +0 -0
- data/lib/net-1.1/nunit-gui-runner.dll +0 -0
- data/lib/net-1.1/nunit-gui.tests.dll +0 -0
- data/lib/net-1.1/nunit.core.dll +0 -0
- data/lib/net-1.1/nunit.core.extensions.dll +0 -0
- data/lib/net-1.1/nunit.core.interfaces.dll +0 -0
- data/lib/net-1.1/nunit.core.tests.dll +0 -0
- data/lib/net-1.1/nunit.exe +0 -0
- data/lib/net-1.1/nunit.extensions.tests.dll +0 -0
- data/lib/net-1.1/nunit.fixtures.dll +0 -0
- data/lib/net-1.1/nunit.fixtures.tests.dll +0 -0
- data/lib/net-1.1/nunit.framework.extensions.dll +0 -0
- data/lib/net-1.1/nunit.framework.tests.dll +0 -0
- data/lib/net-1.1/nunit.framework.xml +0 -5622
- data/lib/net-1.1/nunit.mocks.dll +0 -0
- data/lib/net-1.1/nunit.mocks.tests.dll +0 -0
- data/lib/net-1.1/nunit.uikit.dll +0 -0
- data/lib/net-1.1/nunit.uikit.tests.dll +0 -0
- data/lib/net-1.1/nunit.util.dll +0 -0
- data/lib/net-1.1/test-assembly.dll +0 -0
- data/lib/net-1.1/test-utilities.dll +0 -0
- data/lib/net-1.1/timing-tests.dll +0 -0
- data/lib/net-2.0/Failure.jpg +0 -0
- data/lib/net-2.0/Ignored.jpg +0 -0
- data/lib/net-2.0/mock-assembly.dll +0 -0
- data/lib/net-2.0/nonamespace-assembly.dll +0 -0
- data/lib/net-2.0/notestfixtures-assembly.dll +0 -0
- data/lib/net-2.0/nunit-console-runner.dll +0 -0
- data/lib/net-2.0/nunit-console.tests.dll +0 -0
- data/lib/net-2.0/nunit-gui-runner.dll +0 -0
- data/lib/net-2.0/nunit-gui.tests.dll +0 -0
- data/lib/net-2.0/nunit.core.dll +0 -0
- data/lib/net-2.0/nunit.core.extensions.dll +0 -0
- data/lib/net-2.0/nunit.core.interfaces.dll +0 -0
- data/lib/net-2.0/nunit.core.tests.dll +0 -0
- data/lib/net-2.0/nunit.extensions.tests.dll +0 -0
- data/lib/net-2.0/nunit.fixtures.dll +0 -0
- data/lib/net-2.0/nunit.fixtures.tests.dll +0 -0
- data/lib/net-2.0/nunit.framework.extensions.dll +0 -0
- data/lib/net-2.0/nunit.framework.tests.dll +0 -0
- data/lib/net-2.0/nunit.framework.xml +0 -5622
- data/lib/net-2.0/nunit.mocks.dll +0 -0
- data/lib/net-2.0/nunit.mocks.tests.dll +0 -0
- data/lib/net-2.0/nunit.uikit.dll +0 -0
- data/lib/net-2.0/nunit.uikit.tests.dll +0 -0
- data/lib/net-2.0/nunit.util.dll +0 -0
- data/lib/net-2.0/test-assembly.dll +0 -0
- data/lib/net-2.0/test-utilities.dll +0 -0
- data/lib/net-2.0/timing-tests.dll +0 -0
data/docs/timeout.html
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - Timeout</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
|
+
<h3>TimeoutAttribute (NUnit 2.5)</h3>
|
28
|
+
|
29
|
+
<p>The <b>TimeoutAttribute</b> is used to specify a timeout value in milliseconds
|
30
|
+
for a test case. It may also be speciried on a fixture or assembly, in which
|
31
|
+
case it indicates the default timeout for any subordinate test cases.
|
32
|
+
|
33
|
+
<h4>See Also...</h4>
|
34
|
+
<ul>
|
35
|
+
<li><a href="maxtime.html">MaxtimeAttribute</a></ul>
|
36
|
+
|
37
|
+
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<!-- Submenu -->
|
41
|
+
<div id="subnav">
|
42
|
+
<ul>
|
43
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
44
|
+
<ul>
|
45
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
46
|
+
<li><a href="assertions.html">Assertions</a></li>
|
47
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
48
|
+
<li><a href="attributes.html">Attributes</a></li>
|
49
|
+
<ul>
|
50
|
+
<li><a href="category.html">Category</a></li>
|
51
|
+
<li><a href="combinatorial.html">Combinatorial</a></li>
|
52
|
+
<li><a href="culture.html">Culture</a></li>
|
53
|
+
<li><a href="datapoint.html">Datapoint(s)</a></li>
|
54
|
+
<li><a href="description.html">Description</a></li>
|
55
|
+
<li><a href="exception.html">Exception</a></li>
|
56
|
+
<li><a href="explicit.html">Explicit</a></li>
|
57
|
+
<li><a href="ignore.html">Ignore</a></li>
|
58
|
+
<li><a href="maxtime.html">Maxtime</a></li>
|
59
|
+
<li><a href="pairwise.html">Pairwise</a></li>
|
60
|
+
<li><a href="platform.html">Platform</a></li>
|
61
|
+
<li><a href="property.html">Property</a></li>
|
62
|
+
<li><a href="random.html">Random</a></li>
|
63
|
+
<li><a href="range.html">Range</a></li>
|
64
|
+
<li><a href="repeat.html">Repeat</a></li>
|
65
|
+
<li><a href="requiredAddin.html">RequiredAddin</a></li>
|
66
|
+
<li><a href="requiresMTA.html">Requires MTA</a></li>
|
67
|
+
<li><a href="requiresSTA.html">Requires STA</a></li>
|
68
|
+
<li><a href="requiresThread.html">Requires Thread</a></li>
|
69
|
+
<li><a href="sequential.html">Sequential</a></li>
|
70
|
+
<li><a href="setCulture.html">SetCulture</a></li>
|
71
|
+
<li><a href="setup.html">Setup</a></li>
|
72
|
+
<li><a href="setupFixture.html">SetupFixture</a></li>
|
73
|
+
<li><a href="suite.html">Suite</a></li>
|
74
|
+
<li><a href="teardown.html">Teardown</a></li>
|
75
|
+
<li><a href="test.html">Test</a></li>
|
76
|
+
<li><a href="testCase.html">TestCase</a></li>
|
77
|
+
<li><a href="testCaseSource.html">TestCaseSource</a></li>
|
78
|
+
<li><a href="testFixture.html">TestFixture</a></li>
|
79
|
+
<li><a href="fixtureSetup.html">TestFixtureSetUp</a></li>
|
80
|
+
<li><a href="fixtureTeardown.html">TestFixtureTearDown</a></li>
|
81
|
+
<li><a href="theory.html">Theory</a></li>
|
82
|
+
<li id="current"><a href="timeout.html">Timeout</a></li>
|
83
|
+
<li><a href="values.html">Values</a></li>
|
84
|
+
<li><a href="valueSource.html">ValueSource</a></li>
|
85
|
+
</ul>
|
86
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
87
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
88
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
89
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
90
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
91
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
92
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
93
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
94
|
+
<li><a href="samples.html">Samples</a></li>
|
95
|
+
<li><a href="license.html">License</a></li>
|
96
|
+
</ul>
|
97
|
+
</ul>
|
98
|
+
</div>
|
99
|
+
<!-- End of Submenu -->
|
100
|
+
|
101
|
+
|
102
|
+
<!-- Standard Footer for NUnit.org -->
|
103
|
+
<div id="footer">
|
104
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
105
|
+
</div>
|
106
|
+
<!-- End of Footer -->
|
107
|
+
|
108
|
+
</body>
|
109
|
+
</html>
|
data/docs/typeAsserts.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -24,12 +24,13 @@
|
|
24
24
|
|
25
25
|
<div id="content">
|
26
26
|
|
27
|
-
<h2>Type Asserts (NUnit 2.2.3)</h2>
|
27
|
+
<h2>Type Asserts (NUnit 2.2.3 / 2.5)</h2>
|
28
28
|
|
29
29
|
<p>These methods allow us to make assertions about the type of an object.</p>
|
30
30
|
|
31
|
-
<div class="code" style="width: 36em" >
|
32
|
-
|
31
|
+
<div class="code" style="width: 36em" ><pre>
|
32
|
+
|
33
|
+
Assert.IsInstanceOfType( Type expected, object actual );
|
33
34
|
Assert.IsInstanceOfType( Type expected, object actual,
|
34
35
|
string message );
|
35
36
|
Assert.IsInstanceOfType( Type expected, object actual,
|
@@ -51,37 +52,69 @@ Assert.IsNotAssignableFrom( Type expected, object actual );
|
|
51
52
|
Assert.IsNotAssignableFrom( Type expected, object actual,
|
52
53
|
string message );
|
53
54
|
Assert.IsNotAssignableFrom( Type expected, object actual,
|
54
|
-
string message, params object[] parms )
|
55
|
-
|
55
|
+
string message, params object[] parms );
|
56
|
+
|
57
|
+
</pre></div>
|
58
|
+
|
59
|
+
Beginning with NUnit 2.5, generic equivalents are available
|
60
|
+
in .NET 2.0 NUnit packages.
|
61
|
+
|
62
|
+
<div class="code" style="width: 36em" ><pre>
|
63
|
+
|
64
|
+
Assert.IsInstanceOf<T>( object actual );
|
65
|
+
Assert.IsInstanceOf<T>( object actual, string message );
|
66
|
+
Assert.IsInstanceOf<T>( object actual,
|
67
|
+
string message, params object[] parms );
|
68
|
+
|
69
|
+
Assert.IsNotInstanceOf<T>( object actual );
|
70
|
+
Assert.IsNotInstanceOf<T>( object actual, string message );
|
71
|
+
Assert.IsNotInstanceOf<T>( object actual,
|
72
|
+
string message, params object[] parms );
|
73
|
+
|
74
|
+
Assert.IsAssignableFrom<T>( object actual );
|
75
|
+
Assert.IsAssignableFrom<T>( object actual, string message );
|
76
|
+
Assert.IsAssignableFrom<T>( object actual,
|
77
|
+
string message, params object[] parms );
|
78
|
+
|
79
|
+
Assert.IsNotAssignableFrom<T>( object actual );
|
80
|
+
Assert.IsNotAssignableFrom<T>( object actual, string message );
|
81
|
+
Assert.IsNotAssignableFrom<T>( object actual,
|
82
|
+
string message, params object[] parms );
|
83
|
+
|
84
|
+
</pre></div>
|
85
|
+
|
56
86
|
|
57
87
|
</div>
|
58
88
|
|
59
89
|
<!-- Submenu -->
|
60
90
|
<div id="subnav">
|
61
91
|
<ul>
|
62
|
-
<li><a href="index.html">NUnit 2.
|
92
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
63
93
|
<ul>
|
64
94
|
<li><a href="getStarted.html">Getting Started</a></li>
|
65
95
|
<li><a href="assertions.html">Assertions</a></li>
|
66
96
|
<ul>
|
67
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
68
|
-
<ul>
|
69
97
|
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
70
98
|
<li><a href="identityAsserts.html">Identity Asserts</a></li>
|
71
|
-
<li><a href="conditionAsserts.html">Condition
|
99
|
+
<li><a href="conditionAsserts.html">Condition Asserts</a></li>
|
72
100
|
<li><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
73
101
|
<li id="current"><a href="typeAsserts.html">Type Asserts</a></li>
|
102
|
+
<li><a href="exceptionAsserts.html">Exception Asserts</a></li>
|
74
103
|
<li><a href="utilityAsserts.html">Utility Methods</a></li>
|
75
104
|
<li><a href="stringAssert.html">String Assert</a></li>
|
76
105
|
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
77
106
|
<li><a href="fileAssert.html">File Assert</a></li>
|
107
|
+
<li><a href="directoryAssert.html">Directory Assert</a></li>
|
78
108
|
</ul>
|
79
|
-
<li><a href="constraintModel.html">
|
80
|
-
</ul>
|
109
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
81
110
|
<li><a href="attributes.html">Attributes</a></li>
|
82
111
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
83
112
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
84
|
-
<li><a href="
|
113
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
114
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
115
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
116
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
117
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
85
118
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
86
119
|
<li><a href="samples.html">Samples</a></li>
|
87
120
|
<li><a href="license.html">License</a></li>
|
@@ -93,7 +126,7 @@ Assert.IsNotAssignableFrom( Type expected, object actual,
|
|
93
126
|
|
94
127
|
<!-- Standard Footer for NUnit.org -->
|
95
128
|
<div id="footer">
|
96
|
-
Copyright ©
|
129
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
97
130
|
</div>
|
98
131
|
<!-- End of Footer -->
|
99
132
|
|
data/docs/typeConstraints.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -59,31 +59,34 @@ Expect( "Hello", AssignableFrom(typeOf(string)));
|
|
59
59
|
<!-- Submenu -->
|
60
60
|
<div id="subnav">
|
61
61
|
<ul>
|
62
|
-
<li><a href="index.html">NUnit 2.
|
62
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
63
63
|
<ul>
|
64
64
|
<li><a href="getStarted.html">Getting Started</a></li>
|
65
65
|
<li><a href="assertions.html">Assertions</a></li>
|
66
|
-
<
|
67
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
68
|
-
<li><a href="constraintModel.html">Constraint Model</a></li>
|
66
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
69
67
|
<ul>
|
70
68
|
<li><a href="equalConstraint.html">Equal Constraint</a></li>
|
71
69
|
<li><a href="sameasConstraint.html">SameAs Constraint</a></li>
|
72
70
|
<li><a href="conditionConstraints.html">Condition Constraints</a></li>
|
73
71
|
<li><a href="comparisonConstraints.html">Comparison Constrants</a></li>
|
72
|
+
<li><a href="pathConstraints.html">Path Constraints</a></li>
|
74
73
|
<li id="current"><a href="typeConstraints.html">Type Constraints</a></li>
|
75
74
|
<li><a href="stringConstraints.html">String Constraints</a></li>
|
76
75
|
<li><a href="collectionConstraints.html">Collection Constraints</a></li>
|
77
76
|
<li><a href="propertyConstraint.html">Property Constraint</a></li>
|
77
|
+
<li><a href="throwsConstraint.html">Throws Constraint</a></li>
|
78
78
|
<li><a href="compoundConstraints.html">Compound Constraints</a></li>
|
79
|
-
<li><a href="
|
79
|
+
<li><a href="delayedConstraint.html">Delayed Constraint</a></li>
|
80
80
|
<li><a href="listMapper.html">List Mapper</a></li>
|
81
81
|
</ul>
|
82
|
-
</ul>
|
83
82
|
<li><a href="attributes.html">Attributes</a></li>
|
84
83
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
85
84
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
86
|
-
<li><a href="
|
85
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
86
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
87
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
88
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
89
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
87
90
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
88
91
|
<li><a href="samples.html">Samples</a></li>
|
89
92
|
<li><a href="license.html">License</a></li>
|
@@ -95,7 +98,7 @@ Expect( "Hello", AssignableFrom(typeOf(string)));
|
|
95
98
|
|
96
99
|
<!-- Standard Footer for NUnit.org -->
|
97
100
|
<div id="footer">
|
98
|
-
Copyright ©
|
101
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
99
102
|
</div>
|
100
103
|
<!-- End of Footer -->
|
101
104
|
|
data/docs/upgrade.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -33,26 +33,27 @@ specify a setting in the test config file to allow use of old style test cases b
|
|
33
33
|
default.</p>
|
34
34
|
|
35
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
|
36
|
+
versions of NUnit 2.x without recompilation. Note that you must have an
|
37
|
+
available copy of the nunit.framework assembly from the older version
|
38
|
+
in order for your tests to load correctly.
|
37
39
|
|
38
40
|
<h2>From NUnit 1.x</h2>
|
39
41
|
|
40
|
-
<p>
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
warnings, but they can be ignored for now!
|
50
|
-
</p>
|
42
|
+
<p>NUnit 2.5 no longer supports inheriting from TestCase when defining a test.
|
43
|
+
If you need to run such tests, you may continue to do so using the
|
44
|
+
a 2.4.x or earlier version of the nunit.framework assembly. Of course, you
|
45
|
+
will not be able to use new features introduced in 2.5 if you follow this
|
46
|
+
course.
|
47
|
+
|
48
|
+
<p>For a complete conversion to 2.5, you should modify and recompile your tests
|
49
|
+
using the new version of NUnit.
|
50
|
+
|
51
51
|
<h3>Suite property</h3>
|
52
|
-
<p>The
|
52
|
+
<p>The NUnit 1.x Suite property will not be found by the new program. These must be
|
53
53
|
changed to the "Suite" attribute for the test runners to find them.
|
54
54
|
Another alternative is that these suites are no longer needed due to the
|
55
55
|
automatic capability that is built in to the new version.</p>
|
56
|
+
|
56
57
|
<h3>AssertionFailedError</h3>
|
57
58
|
<p>If you have written code expecting the exception AssertionFailedError, this must
|
58
59
|
be changed to AssertionException.</p>
|
@@ -63,7 +64,7 @@ versions of NUnit 2.x without recompilation.</p>
|
|
63
64
|
<!-- Submenu -->
|
64
65
|
<div id="subnav">
|
65
66
|
<ul>
|
66
|
-
<li><a href="index.html">NUnit 2.
|
67
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
67
68
|
<ul>
|
68
69
|
<li><a href="getStarted.html">Getting Started</a></li>
|
69
70
|
<ul>
|
@@ -74,10 +75,15 @@ versions of NUnit 2.x without recompilation.</p>
|
|
74
75
|
</ul>
|
75
76
|
</ul>
|
76
77
|
<li><a href="assertions.html">Assertions</a></li>
|
78
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
77
79
|
<li><a href="attributes.html">Attributes</a></li>
|
78
80
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
79
81
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
80
|
-
<li><a href="
|
82
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
83
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
84
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
85
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
86
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
81
87
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
82
88
|
<li><a href="samples.html">Samples</a></li>
|
83
89
|
<li><a href="license.html">License</a></li>
|
@@ -89,7 +95,7 @@ versions of NUnit 2.x without recompilation.</p>
|
|
89
95
|
|
90
96
|
<!-- Standard Footer for NUnit.org -->
|
91
97
|
<div id="footer">
|
92
|
-
Copyright ©
|
98
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
93
99
|
</div>
|
94
100
|
<!-- End of Footer -->
|
95
101
|
|
data/docs/utilityAsserts.html
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
<!-- saved from url=(0014)about:internet --><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
2
|
<html>
|
3
3
|
<!-- Standard Head Part -->
|
4
4
|
<head>
|
@@ -25,18 +25,33 @@
|
|
25
25
|
<div id="content">
|
26
26
|
|
27
27
|
<h2>Utility Methods</h2>
|
28
|
-
<p>
|
29
|
-
|
30
|
-
<div class="code" style="width: 36em">
|
31
|
-
|
28
|
+
<p>Four utility methods, <b>Pass()</b>, <b>Fail()</b>, <b>Ignore()</b> and <b>Inconclusive()</b> are provided
|
29
|
+
in order to allow more direct control of the test process:</p>
|
30
|
+
<div class="code" style="width: 36em"><pre>
|
31
|
+
Assert.Pass();
|
32
|
+
Assert.Pass( string message );
|
33
|
+
Assert.Pass( string message, object[] parms );
|
34
|
+
|
35
|
+
Assert.Fail();
|
32
36
|
Assert.Fail( string message );
|
33
37
|
Assert.Fail( string message, object[] parms );
|
34
38
|
|
35
39
|
Assert.Ignore();
|
36
40
|
Assert.Ignore( string message );
|
37
|
-
Assert.Ignore( string message, object[] parms )
|
41
|
+
Assert.Ignore( string message, object[] parms );
|
42
|
+
|
43
|
+
Assert.Inconclusive();
|
44
|
+
Assert.Inconclusive( string message );
|
45
|
+
Assert.Inconclusive( string message, object[] parms );</pre>
|
38
46
|
</div>
|
39
|
-
<p>The Assert.
|
47
|
+
<p>The <b>Assert.Pass</b> method allows you to immediately end the test, recording
|
48
|
+
it as successful. Since it causes an exception to be thrown, it is more
|
49
|
+
efficient to simply allow the test to return. However, Assert.Pass allows
|
50
|
+
you to record a message in the test result and may also make the test
|
51
|
+
easier to read in some situations. Additionally, like the other methods
|
52
|
+
on this page, it can be invoked from a nested method call with the
|
53
|
+
result of immediately terminating test execution.</p>
|
54
|
+
<p>The <b>Assert.Fail</b> method provides you with the ability to generate a failure based
|
40
55
|
on tests that are not encapsulated by the other methods. It is also useful in
|
41
56
|
developing your own project-specific assertions.</p>
|
42
57
|
<p>Here's an example of its use to create a private assertion that tests whether a
|
@@ -54,41 +69,48 @@ public void AssertStringContains( string expected, string actual,
|
|
54
69
|
Assert.Fail( message );
|
55
70
|
}</pre>
|
56
71
|
</div>
|
57
|
-
<p>The Assert.Ignore method provides you with the ability to dynamically cause a
|
72
|
+
<p>The <b>Assert.Ignore</b> method provides you with the ability to dynamically cause a
|
58
73
|
test or suite to be ignored at runtime. It may be called in a test, setup or
|
59
74
|
fixture setup method. We recommend that you use this only in isolated cases.
|
60
75
|
The category facility is provided for more extensive inclusion or exclusion of
|
61
76
|
tests or you may elect to simply divide tests run on different occasions into
|
62
77
|
different assemblies.</p>
|
78
|
+
<p>The <b>Assert.Inconclusive</b> method indicates that the test could not be
|
79
|
+
completed with the data available. It should be used in situations where
|
80
|
+
another run with different data might run to completion, with either a
|
81
|
+
success or failure outcome.
|
63
82
|
|
64
83
|
</div>
|
65
84
|
|
66
85
|
<!-- Submenu -->
|
67
86
|
<div id="subnav">
|
68
87
|
<ul>
|
69
|
-
<li><a href="index.html">NUnit 2.
|
88
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
70
89
|
<ul>
|
71
90
|
<li><a href="getStarted.html">Getting Started</a></li>
|
72
91
|
<li><a href="assertions.html">Assertions</a></li>
|
73
92
|
<ul>
|
74
|
-
<li><a href="classicModel.html">Classic Model</a></li>
|
75
|
-
<ul>
|
76
93
|
<li><a href="equalityAsserts.html">Equality Asserts</a></li>
|
77
94
|
<li><a href="identityAsserts.html">Identity Asserts</a></li>
|
78
|
-
<li><a href="conditionAsserts.html">Condition
|
95
|
+
<li><a href="conditionAsserts.html">Condition Asserts</a></li>
|
79
96
|
<li><a href="comparisonAsserts.html">Comparison Asserts</a></li>
|
80
97
|
<li><a href="typeAsserts.html">Type Asserts</a></li>
|
98
|
+
<li><a href="exceptionAsserts.html">Exception Asserts</a></li>
|
81
99
|
<li id="current"><a href="utilityAsserts.html">Utility Methods</a></li>
|
82
100
|
<li><a href="stringAssert.html">String Assert</a></li>
|
83
101
|
<li><a href="collectionAssert.html">Collection Assert</a></li>
|
84
102
|
<li><a href="fileAssert.html">File Assert</a></li>
|
103
|
+
<li><a href="directoryAssert.html">Directory Assert</a></li>
|
85
104
|
</ul>
|
86
|
-
<li><a href="constraintModel.html">
|
87
|
-
</ul>
|
105
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
88
106
|
<li><a href="attributes.html">Attributes</a></li>
|
89
107
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
90
108
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
91
|
-
<li><a href="
|
109
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
110
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
111
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
112
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
113
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
92
114
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
93
115
|
<li><a href="samples.html">Samples</a></li>
|
94
116
|
<li><a href="license.html">License</a></li>
|
@@ -100,7 +122,7 @@ public void AssertStringContains( string expected, string actual,
|
|
100
122
|
|
101
123
|
<!-- Standard Footer for NUnit.org -->
|
102
124
|
<div id="footer">
|
103
|
-
Copyright ©
|
125
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
104
126
|
</div>
|
105
127
|
<!-- End of Footer -->
|
106
128
|
|