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/multiAssembly.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>
|
@@ -97,20 +97,19 @@ and the user may need to place the directory containing the unmanaged dll on the
|
|
97
97
|
<!-- Submenu -->
|
98
98
|
<div id="subnav">
|
99
99
|
<ul>
|
100
|
-
<li><a href="index.html">NUnit 2.
|
100
|
+
<li><a href="index.html">NUnit 2.5</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>
|
104
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
104
105
|
<li><a href="attributes.html">Attributes</a></li>
|
105
106
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
106
107
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
107
|
-
<li><a href="features.html">Other Features</a></li>
|
108
|
-
<ul>
|
109
108
|
<li><a href="configFiles.html">Configuration Files</a></li>
|
109
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
110
110
|
<li id="current"><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
111
111
|
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
112
112
|
<li><a href="extensibility.html">Extensibility</a></li>
|
113
|
-
</ul>
|
114
113
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
115
114
|
<li><a href="samples.html">Samples</a></li>
|
116
115
|
<li><a href="license.html">License</a></li>
|
@@ -122,7 +121,7 @@ and the user may need to place the directory containing the unmanaged dll on the
|
|
122
121
|
|
123
122
|
<!-- Standard Footer for NUnit.org -->
|
124
123
|
<div id="footer">
|
125
|
-
Copyright ©
|
124
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
126
125
|
</div>
|
127
126
|
<!-- End of Footer -->
|
128
127
|
|
data/docs/nunit-console.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>
|
@@ -54,17 +54,22 @@ program, which is built using /platform:x86, when testing 32-bit code on a
|
|
54
54
|
<!-- Submenu -->
|
55
55
|
<div id="subnav">
|
56
56
|
<ul>
|
57
|
-
<li><a href="index.html">NUnit 2.
|
57
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
58
58
|
<ul>
|
59
59
|
<li><a href="getStarted.html">Getting Started</a></li>
|
60
60
|
<li><a href="assertions.html">Assertions</a></li>
|
61
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
61
62
|
<li><a href="attributes.html">Attributes</a></li>
|
62
63
|
<li id="current"><a href="nunit-console.html">Console Runner</a></li>
|
63
64
|
<ul>
|
64
65
|
<li><a href="consoleCommandLine.html">Command-Line</a></li>
|
65
66
|
</ul>
|
66
67
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
67
|
-
<li><a href="
|
68
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
69
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
70
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
71
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
72
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
68
73
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
69
74
|
<li><a href="samples.html">Samples</a></li>
|
70
75
|
<li><a href="license.html">License</a></li>
|
@@ -76,7 +81,7 @@ program, which is built using /platform:x86, when testing 32-bit code on a
|
|
76
81
|
|
77
82
|
<!-- Standard Footer for NUnit.org -->
|
78
83
|
<div id="footer">
|
79
|
-
Copyright ©
|
84
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
80
85
|
</div>
|
81
86
|
<!-- End of Footer -->
|
82
87
|
|
data/docs/nunit-gui.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>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
failure of the tests. It allows you to selectively run single tests or suites
|
31
31
|
and reloads automatically as you modify and re-compile your code. The following
|
32
32
|
is a screenshot of NUnit running the same mock-assembly.dll shown in the
|
33
|
-
|
33
|
+
nunit-console example.</p>
|
34
34
|
|
35
35
|
<div class="screenshot-left">
|
36
36
|
<img src="img/gui-screenshot.jpg"></div>
|
@@ -57,31 +57,44 @@ to the "worst" result obtained: red if there were any failures, yellow if
|
|
57
57
|
some tests were ignored and green for success.
|
58
58
|
|
59
59
|
<h4>Result Tabs</h4>
|
60
|
-
<p>The tabs
|
60
|
+
<p>The tabs along the bottom of the display show the results of running
|
61
61
|
a test. The <b>Errors and Failures</b> tab displays the error message
|
62
62
|
and stack trace for both unexpected exceptions and assertion failures.
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
Beginning with NUnit 2.5, source code for each stack location can be displayed
|
64
|
+
in this tab - as is seen above - provided that the program was compiled with
|
65
|
+
debug information.
|
66
|
+
|
67
|
+
<p>The <b>Tests Not Run</b> tab provides a list of all tests that were
|
68
|
+
selected for running but were not run, together with the reason.
|
69
|
+
|
70
|
+
<p>The Text Output tab displays text output from the tests, potentially
|
71
|
+
including console output, trace output and log output. The default display
|
72
|
+
provides a single tab, but additional tabs may be created by the user to
|
73
|
+
hold specific kinds of output. For more information on creating new tabs,
|
74
|
+
see the documentation for the
|
75
|
+
<a href="settingsDialog.html">Settings Dialog</a>.
|
76
|
+
|
67
77
|
|
68
78
|
<h3>Mini-Gui</h3>
|
69
79
|
|
70
|
-
<p>
|
71
|
-
may be selected from the View menu.
|
72
|
-
gui
|
80
|
+
<p>Since the release of NUnit 2.4, an alternate "mini-gui" is also available. It
|
81
|
+
may be selected from the View menu. In the following screenshot, the mini
|
82
|
+
gui window has been positioned next to the Visual Studio IDE so
|
83
|
+
that both windows can be seen.</p>
|
73
84
|
|
74
|
-
<div class="screenshot">
|
85
|
+
<div class="screenshot-left">
|
75
86
|
<img src="img/miniGui.jpg"></div>
|
87
|
+
|
76
88
|
</div>
|
77
89
|
|
78
90
|
<!-- Submenu -->
|
79
91
|
<div id="subnav">
|
80
92
|
<ul>
|
81
|
-
<li><a href="index.html">NUnit 2.
|
93
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
82
94
|
<ul>
|
83
95
|
<li><a href="getStarted.html">Getting Started</a></li>
|
84
96
|
<li><a href="assertions.html">Assertions</a></li>
|
97
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
85
98
|
<li><a href="attributes.html">Attributes</a></li>
|
86
99
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
87
100
|
<li id="current"><a href="nunit-gui.html">Gui Runner</a></li>
|
@@ -89,13 +102,17 @@ display text output from the tests.
|
|
89
102
|
<li><a href="guiCommandLine.html">Command-Line</a></li>
|
90
103
|
<li><a href="mainMenu.html">Main Menu</a></li>
|
91
104
|
<li><a href="contextMenu.html">Context Menu</a></li>
|
92
|
-
<li><a href="
|
105
|
+
<li><a href="settingsDialog.html">Settings Dialog</a></li>
|
93
106
|
<li><a href="addinsDialog.html">Addins Dialog</a></li>
|
94
107
|
<li><a href="testProperties.html">Test Properties</a></li>
|
95
108
|
<li><a href="configEditor.html">Configuration Editor</a></li>
|
96
109
|
<li><a href="projectEditor.html">Project Editor</a></li>
|
97
110
|
</ul>
|
98
|
-
<li><a href="
|
111
|
+
<li><a href="configFiles.html">Configuration Files</a></li>
|
112
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
113
|
+
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
114
|
+
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
115
|
+
<li><a href="extensibility.html">Extensibility</a></li>
|
99
116
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
100
117
|
<li><a href="samples.html">Samples</a></li>
|
101
118
|
<li><a href="license.html">License</a></li>
|
@@ -107,7 +124,7 @@ display text output from the tests.
|
|
107
124
|
|
108
125
|
<!-- Standard Footer for NUnit.org -->
|
109
126
|
<div id="footer">
|
110
|
-
Copyright ©
|
127
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
111
128
|
</div>
|
112
129
|
<!-- End of Footer -->
|
113
130
|
|
data/docs/nunit.css
CHANGED
@@ -6,7 +6,7 @@ table { font: 1em "Verdana", "Arial", "Helvetica", sans-serif; }
|
|
6
6
|
h1 { font-size: 1.8em; font-weight: bold; }
|
7
7
|
h2 { font-size: 1.5em; font-weight: bold; }
|
8
8
|
h3 { font-size: 1.2em; font-weight: bold; }
|
9
|
-
h4 { font-size: 1em; font-weight: bold;
|
9
|
+
h4 { font-size: 1em; font-weight: bold; }
|
10
10
|
ul.across { width: 100%; display: block; list-style: none; }
|
11
11
|
ul.across li { float: left; display: block; width: 9em }
|
12
12
|
|
@@ -43,7 +43,7 @@ ul.across li { float: left; display: block; width: 9em }
|
|
43
43
|
#subnav li a:hover { background-image: url(img/bulletOn.gif) }
|
44
44
|
|
45
45
|
/* Main Content */
|
46
|
-
#content { margin: 3em 25%
|
46
|
+
#content { margin: 3em 25% 10px 0; padding: 0 5% 1em 5%; }
|
47
47
|
#content.wide { margin: 3em 5% 0 5%; padding: 0 5% 1em 5%; }
|
48
48
|
#content p { padding: 0; margin: 0 0 1em 0; max-width: 660px; }
|
49
49
|
#content ul { max-width: 660px; }
|
@@ -96,7 +96,7 @@ table.quote td.sig { border-left: solid black 1px; padding-left: 15px }
|
|
96
96
|
width: 14%; margin: 1em 0 0; padding: 0 5%; font-size: .8em; background-color: #fff }
|
97
97
|
#news h4 { font: 1.2em "Times New Roman", Roman, serif; font-variant: small-caps; text-align: center; margin: 0 0 1em; }
|
98
98
|
|
99
|
-
div.code { border: 1px solid #888; background-color: #ccf; width:
|
99
|
+
div.code { border: 1px solid #888; background-color: #ccf; width: 36em;
|
100
100
|
margin: 1.5em 0; padding: 2px 0; position: relative; }
|
101
101
|
div.code pre { font: .8em "Courier New", Courier, monospace; margin: 0 1em .25em; }
|
102
102
|
div.langFilter { position: absolute; top: 100px; left: 5%; }
|
data/docs/nunitAddins.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>
|
@@ -26,10 +26,6 @@
|
|
26
26
|
|
27
27
|
<h2>NUnit Addins</h2>
|
28
28
|
|
29
|
-
<div style="text-align: center; margin: 2em 10%; padding: 4px 0; border: 2px solid black">
|
30
|
-
<h4>Preliminary documentation, subject to change.</h4>
|
31
|
-
</div>
|
32
|
-
|
33
29
|
<p>NUnit originally identified tests in the time-honored way used in many xUnit
|
34
30
|
test frameworks. Test classes inherited from the framework's
|
35
31
|
TestCase class. Individual test case methods were identified by having names
|
@@ -114,15 +110,15 @@ extension points. It is defined as follows:</p>
|
|
114
110
|
public interface IExtensionHost
|
115
111
|
{
|
116
112
|
IExtensionPoint[] ExtensionPoints { get; }
|
117
|
-
IFrameworkRegistry FrameworkRegistry{ get; }
|
118
113
|
IExtensionPoint GetExtensionPoint( string name );
|
114
|
+
ExtensionType ExtensionTypes { get; }
|
119
115
|
}
|
120
116
|
</pre>
|
121
117
|
|
122
118
|
<p>The <b>ExtensionPoints</b> property returns an array of all extension points
|
123
|
-
for those extensions that need the information. The <b>
|
124
|
-
|
125
|
-
|
119
|
+
for those extensions that need the information. The <b>ExtensionTypes</b>
|
120
|
+
property returns the flags for the type of extension supported by this host,
|
121
|
+
allowing, for example, Gui extensions to only load in a Gui host.</p>
|
126
122
|
|
127
123
|
<p>Most addins will only need to use the <b>GetExtensionPoint</b> method to
|
128
124
|
get the interface to a particular extension point. The <b>IExtensionPoint</b>
|
@@ -144,173 +140,74 @@ to the <b>Extension Point</b> where it is installed. Generally, extensions
|
|
144
140
|
do not need to remove themselves once installed, but the method is
|
145
141
|
provided in any case.</p>
|
146
142
|
|
147
|
-
<
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
<ul>
|
154
|
-
<li><a href="#suiteBuilders">SuiteBuilders</a>
|
155
|
-
<li><a href="#testBuilders">TestCaseBuilders</a>
|
156
|
-
<li><a href="#testDecorators">TestDecorators</a>
|
157
|
-
<li><a href="#eventListeners">Listeners</a>
|
158
|
-
</ul></p>
|
159
|
-
|
160
|
-
<p>For examples of implementing each type of extension, see the Extensibility
|
161
|
-
samples provided with NUnit. More complete examples are available in the
|
162
|
-
code of NUnit itself, since NUnit uses the same mechanism internally.</p>
|
163
|
-
|
164
|
-
<h4><a name="suiteBuilders">SuiteBuilders</a></h4>
|
165
|
-
<p>
|
166
|
-
<p>Addins use the host to access this extension point by name:
|
167
|
-
|
168
|
-
<pre>
|
169
|
-
IExtensionPoint suiteBuilders = host.GetExtensionPoint( "SuiteBuilders" );</pre>
|
170
|
-
|
171
|
-
<p>The extension object passed to Install must implement the ISuiteBuilder interface:
|
172
|
-
|
173
|
-
<pre>
|
174
|
-
public interface ISuiteBuilder
|
175
|
-
{
|
176
|
-
bool CanBuildFrom( Type type );
|
177
|
-
Test BuildFrom( Type type );
|
178
|
-
}
|
179
|
-
</pre>
|
180
|
-
|
181
|
-
<p>The BuildFrom method should return a test fixture completely populated
|
182
|
-
with its contained test cases.
|
183
|
-
|
184
|
-
<h4><a name="testBuilders">TestCaseBuilders</a></h4>
|
185
|
-
<p>
|
186
|
-
<p>Addins use the host to access this extension point by name:
|
187
|
-
|
188
|
-
<pre>
|
189
|
-
IExtensionPoint testCaseBuilders = host.GetExtensionPoint( "TestCaseBuilders" );</pre>
|
190
|
-
|
191
|
-
<p>The extension object passed to Install must implement the ITestCaseBuilder interface:
|
192
|
-
|
193
|
-
<pre>
|
194
|
-
public interface ITestCaseBuilder
|
195
|
-
{
|
196
|
-
bool CanBuildFrom( MethodInfo method );
|
197
|
-
Test BuildFrom( MethodInfo method );
|
198
|
-
}
|
199
|
-
</pre>
|
200
|
-
|
201
|
-
<p>Note that this extension point will be called for methods in any type
|
202
|
-
of fixture. If the addin is intended to only work on methods within
|
203
|
-
a particular type of fixture, the CanBuildFrom method must check
|
204
|
-
the fixture type.
|
205
|
-
|
206
|
-
<h4><a name="testDecorators">TestDecorators</a></h4>
|
207
|
-
<p>
|
208
|
-
<p>Addins use the host to access this extension point by name:
|
209
|
-
|
210
|
-
<pre>
|
211
|
-
IExtensionPoint testDecorators = host.GetExtensionPoint( "TestDecorators" );</pre>
|
212
|
-
|
213
|
-
<p>The extension object passed to Install must implement the ITestDecorator interface:
|
143
|
+
<p>With NUnit 2.5, an additional interface, <b>IExtensionPoint2</b> is
|
144
|
+
available. It derives from <b>IExtensionPoint</b> and also allows setting
|
145
|
+
the priority order in which the extension will be called in comparison to
|
146
|
+
other extensions on the same extension point. The interface is defined
|
147
|
+
as follows:
|
214
148
|
|
215
149
|
<pre>
|
216
|
-
public interface
|
150
|
+
public interface IExtensionPoint2 : IExtensionPoint
|
217
151
|
{
|
218
|
-
|
152
|
+
void Install( object extension, int priority );
|
219
153
|
}
|
220
154
|
</pre>
|
221
155
|
|
222
|
-
<p>
|
223
|
-
|
224
|
-
|
225
|
-
<li>Return test unmodified
|
226
|
-
<li>Modify properties of the test object and return it
|
227
|
-
<li>Replace test with another object, either discarding the
|
228
|
-
original or aggregating it in the new test.
|
229
|
-
</ol>
|
156
|
+
<p>Only extension points that use a priority scheme implement this interface.
|
157
|
+
In general, extension points with a priority scheme will use a default value
|
158
|
+
for priority if the Install method without a priority is called.
|
230
159
|
|
231
|
-
<
|
232
|
-
<
|
233
|
-
<p>Addins use the host to access this extension point by name:
|
160
|
+
<p>In the NUnit 2.5 release, only the <b>TestDecorators</b> extension point implements
|
161
|
+
<b>IExtensionPoint2</b>.
|
234
162
|
|
235
|
-
<
|
236
|
-
IExtensionPoint listeners = host.GetExtensionPoint( "EventListeners" );</pre>
|
237
|
-
|
238
|
-
<p>The extension object passed to Install must implement the EventListener interface:
|
239
|
-
|
240
|
-
<pre>
|
241
|
-
public interface EventListener
|
242
|
-
{
|
243
|
-
void RunStarted( string name, int testCount );
|
244
|
-
void RunFinished( TestResult result );
|
245
|
-
void RunFinished( Exception exception );
|
246
|
-
void TestStarted(TestName testName);
|
247
|
-
void TestFinished(TestCaseResult result);
|
248
|
-
void SuiteStarted(TestName testName);
|
249
|
-
void SuiteFinished(TestSuiteResult result);
|
250
|
-
void UnhandledException( Exception exception );
|
251
|
-
void TestOutput(TestOutput testOutput);
|
252
|
-
}
|
253
|
-
</pre>
|
254
|
-
|
255
|
-
<p>You must provide all the methods, but the body may be empty for any
|
256
|
-
that you have no need of.
|
257
|
-
|
258
|
-
<h3>Tips for Writing Extensions</h3>
|
163
|
+
<h3>Extension Point Details</h3>
|
259
164
|
|
260
|
-
<p>
|
261
|
-
|
262
|
-
|
165
|
+
<p>Depending on the particular extension point, the object passed will
|
166
|
+
need to implement one or more interfaces. The following <b>ExtensionPoints</b>
|
167
|
+
are implemented in this release of NUnit:
|
263
168
|
|
264
|
-
<p>For the moment, the following tips may be of assistance.
|
265
169
|
<ul>
|
266
|
-
<li>
|
267
|
-
while the <b>nunit.core</b> assembly will change from release to release. Right now,
|
268
|
-
both assemblies are still in flux, but extensions that depend solely on the interfaces
|
269
|
-
assembly will have a much better chance of surviving NUnit version changes. Unfortunately,
|
270
|
-
this is rather difficult to do without duplicating a great deal of NUnit code. Most
|
271
|
-
of the add-in samples provided with NUnit are currently version dependent.
|
272
|
-
|
273
|
-
<li>If you place the definition of a custom attribute in the same assembly as your
|
274
|
-
add-in, then user tests are dependent on the add-in assembly. If the add-in is
|
275
|
-
version-dependent, then the user tests will also be version-dependent. We suggest
|
276
|
-
placing any types referenced by user tests in a separate assembly, particularly if
|
277
|
-
your extension relies on nunit.core.
|
170
|
+
<li><a href="suiteBuilders.html">SuiteBuilders</a> <li><a href="testcaseBuilders.html">TestCaseBuilders</a> <li><a href="testDecorators.html">TestDecorators</a> <li><a href="testcaseProviders.html">TestCaseProviders</a> <li><a href="datapointProviders.html">DataPointProviders</a> <li><a href="eventListeners.html">EventListeners</a></ul></p>
|
278
171
|
|
279
|
-
<
|
280
|
-
|
281
|
-
NUnit itself
|
282
|
-
|
283
|
-
<li>There is currently no mechanism to allow decorators to apply in a particular order.
|
284
|
-
NUnit applies decorators in the order in which they are returned through reflection,
|
285
|
-
which may vary among different runtimes.
|
172
|
+
<p>For examples of implementing each type of extension, see the Extensibility
|
173
|
+
samples provided with NUnit. More complete examples are available in the
|
174
|
+
code of NUnit itself, since NUnit uses the same mechanism internally.</p>
|
286
175
|
|
287
|
-
<
|
288
|
-
intended to do. Rather, let us know what further extension points you would like to see!
|
289
|
-
</ul>
|
176
|
+
<h4>See also...</h4>
|
290
177
|
|
178
|
+
<ul>
|
179
|
+
<li><a href="extensionTips.html">Tips for Writing Extensions</a></ul>
|
291
180
|
|
292
181
|
</div>
|
293
182
|
|
294
183
|
<!-- Submenu -->
|
295
184
|
<div id="subnav">
|
296
185
|
<ul>
|
297
|
-
<li><a href="index.html">NUnit 2.
|
186
|
+
<li><a href="index.html">NUnit 2.5</a></li>
|
298
187
|
<ul>
|
299
188
|
<li><a href="getStarted.html">Getting Started</a></li>
|
300
189
|
<li><a href="assertions.html">Assertions</a></li>
|
190
|
+
<li><a href="constraintModel.html">Constraints</a></li>
|
301
191
|
<li><a href="attributes.html">Attributes</a></li>
|
302
192
|
<li><a href="nunit-console.html">Console Runner</a></li>
|
303
193
|
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
304
|
-
<li><a href="features.html">Other Features</a></li>
|
305
|
-
<ul>
|
306
194
|
<li><a href="configFiles.html">Configuration Files</a></li>
|
195
|
+
<li><a href="pnunit.html">PNUnit</a></li>
|
307
196
|
<li><a href="multiAssembly.html">Multiple Assemblies</a></li>
|
308
197
|
<li><a href="vsSupport.html">Visual Studio Support</a></li>
|
309
198
|
<li><a href="extensibility.html">Extensibility</a></li>
|
310
199
|
<ul>
|
311
|
-
<li><a href="
|
200
|
+
<li><a href="customConstraints.html">Custom Constraints</a></li>
|
312
201
|
<li id="current"><a href="nunitAddins.html">NUnit Addins</a></li>
|
202
|
+
<ul>
|
203
|
+
<li><a href="suiteBuilders.html">SuiteBuilders</a></li>
|
204
|
+
<li><a href="testcaseBuilders.html">TestcaseBuilders</a></li>
|
205
|
+
<li><a href="testDecorators.html">TestDecorators</a></li>
|
206
|
+
<li><a href="testcaseProviders.html">TestcaseProviders</a></li>
|
207
|
+
<li><a href="datapointProviders.html">DatapointProviders</a></li>
|
208
|
+
<li><a href="eventListeners.html">EventListeners</a></li>
|
313
209
|
</ul>
|
210
|
+
<li><a href="extensionTips.html">Tips for Extenders</a></li>
|
314
211
|
</ul>
|
315
212
|
<li><a href="releaseNotes.html">Release Notes</a></li>
|
316
213
|
<li><a href="samples.html">Samples</a></li>
|
@@ -323,7 +220,7 @@ intended to do. Rather, let us know what further extension points you would like
|
|
323
220
|
|
324
221
|
<!-- Standard Footer for NUnit.org -->
|
325
222
|
<div id="footer">
|
326
|
-
Copyright ©
|
223
|
+
Copyright © 2009 Charlie Poole. All Rights Reserved.
|
327
224
|
</div>
|
328
225
|
<!-- End of Footer -->
|
329
226
|
|