nunit 2.4.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/addinsDialog.html +74 -0
- data/docs/assertions.html +91 -0
- data/docs/attributes.html +89 -0
- data/docs/category.html +265 -0
- data/docs/classicModel.html +92 -0
- data/docs/codeFuncs.js +77 -0
- data/docs/collectionAssert.html +162 -0
- data/docs/collectionConstraints.html +130 -0
- data/docs/comparisonAsserts.html +271 -0
- data/docs/comparisonConstraints.html +109 -0
- data/docs/compoundConstraints.html +97 -0
- data/docs/conditionAsserts.html +123 -0
- data/docs/conditionConstraints.html +106 -0
- data/docs/configEditor.html +93 -0
- data/docs/configFiles.html +155 -0
- data/docs/consoleCommandLine.html +271 -0
- data/docs/constraintModel.html +134 -0
- data/docs/contextMenu.html +106 -0
- data/docs/culture.html +255 -0
- data/docs/customAsserts.html +115 -0
- data/docs/customConstraints.html +101 -0
- data/docs/description.html +178 -0
- data/docs/equalConstraint.html +139 -0
- data/docs/equalityAsserts.html +187 -0
- data/docs/exception.html +296 -0
- data/docs/explicit.html +256 -0
- data/docs/extensibility.html +83 -0
- data/docs/favicon.ico +0 -0
- data/docs/features.html +75 -0
- data/docs/fileAssert.html +114 -0
- data/docs/files/QuickStart.Spanish.doc +0 -0
- data/docs/files/QuickStart.doc +0 -0
- data/docs/files/Results.xsd +70 -0
- data/docs/files/Summary.xslt +47 -0
- data/docs/files/TestResult.xml +103 -0
- data/docs/files/Thumbs.db +0 -0
- data/docs/fixtureSetup.html +201 -0
- data/docs/fixtureTeardown.html +204 -0
- data/docs/getStarted.html +80 -0
- data/docs/guiCommandLine.html +183 -0
- data/docs/identityAsserts.html +99 -0
- data/docs/ignore.html +249 -0
- data/docs/img/addinsDialog.JPG +0 -0
- data/docs/img/assembliesTab.jpg +0 -0
- data/docs/img/assemblyReloadOptions.JPG +0 -0
- data/docs/img/bulletOff.gif +0 -0
- data/docs/img/bulletOn.gif +0 -0
- data/docs/img/configEditor.jpg +0 -0
- data/docs/img/console-mock.jpg +0 -0
- data/docs/img/displayTab.jpg +0 -0
- data/docs/img/generalOptions.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/langFilter.gif +0 -0
- data/docs/img/logo.gif +0 -0
- data/docs/img/miniGui.jpg +0 -0
- data/docs/img/optionsDialog.jpg +0 -0
- data/docs/img/resultTab.jpg +0 -0
- data/docs/img/testLoadOptions.jpg +0 -0
- data/docs/img/testOutputOptions.jpg +0 -0
- data/docs/img/testProperties.jpg +0 -0
- data/docs/img/testResultOptions.JPG +0 -0
- data/docs/img/testTab.jpg +0 -0
- data/docs/img/testsTab.JPG +0 -0
- data/docs/img/textOutputOptions.jpg +0 -0
- data/docs/img/treeDisplayOptions.JPG +0 -0
- data/docs/img/visualStudioOptions.JPG +0 -0
- data/docs/index.html +75 -0
- data/docs/installation.html +172 -0
- data/docs/license.html +88 -0
- data/docs/listMapper.html +100 -0
- data/docs/mainMenu.html +260 -0
- data/docs/multiAssembly.html +130 -0
- data/docs/nunit-console.html +84 -0
- data/docs/nunit-gui.html +115 -0
- data/docs/nunit.css +118 -0
- data/docs/nunitAddins.html +331 -0
- data/docs/optionsDialog.html +262 -0
- data/docs/platform.html +285 -0
- data/docs/platformSupport.html +99 -0
- data/docs/projectEditor.html +127 -0
- data/docs/property.html +219 -0
- data/docs/propertyConstraint.html +89 -0
- data/docs/quickStart.html +314 -0
- data/docs/releaseNotes.html +1235 -0
- data/docs/sameasConstraint.html +98 -0
- data/docs/samples.html +126 -0
- data/docs/setCulture.html +173 -0
- data/docs/setup.html +199 -0
- data/docs/setupFixture.html +198 -0
- data/docs/stringAssert.html +107 -0
- data/docs/stringConstraints.html +111 -0
- data/docs/suite.html +222 -0
- data/docs/teardown.html +204 -0
- data/docs/test.html +171 -0
- data/docs/testFixture.html +168 -0
- data/docs/testProperties.html +76 -0
- data/docs/typeAsserts.html +101 -0
- data/docs/typeConstraints.html +103 -0
- data/docs/upgrade.html +97 -0
- data/docs/utilityAsserts.html +108 -0
- data/docs/vsSupport.html +140 -0
- data/lib/net-1.1/Failure.jpg +0 -0
- data/lib/net-1.1/Ignored.jpg +0 -0
- data/lib/net-1.1/NUnitFitTests.html +277 -0
- data/lib/net-1.1/NUnitTests.config +84 -0
- data/lib/net-1.1/NUnitTests.nunit +14 -0
- data/lib/net-1.1/Success.jpg +0 -0
- data/lib/net-1.1/clr.bat +96 -0
- data/lib/net-1.1/fit.dll +0 -0
- data/lib/net-1.1/loadtest-assembly.dll +0 -0
- 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.exe +0 -0
- data/lib/net-1.1/nunit-console.exe.config +117 -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.exe.config +121 -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.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 +5622 -0
- 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/nunit.util.tests.dll +0 -0
- data/lib/net-1.1/runFile.exe +0 -0
- data/lib/net-1.1/runFile.exe.config +43 -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/NUnitFitTests.html +277 -0
- data/lib/net-2.0/NUnitTests.config +84 -0
- data/lib/net-2.0/NUnitTests.nunit +14 -0
- data/lib/net-2.0/Success.jpg +0 -0
- data/lib/net-2.0/clr.bat +96 -0
- data/lib/net-2.0/fit.dll +0 -0
- data/lib/net-2.0/loadtest-assembly.dll +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-x86.exe +0 -0
- data/lib/net-2.0/nunit-console-x86.exe.config +117 -0
- data/lib/net-2.0/nunit-console.exe +0 -0
- data/lib/net-2.0/nunit-console.exe.config +117 -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-x86.exe +0 -0
- data/lib/net-2.0/nunit-x86.exe.config +121 -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.exe +0 -0
- data/lib/net-2.0/nunit.exe.config +121 -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.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 +5622 -0
- 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/nunit.util.tests.dll +0 -0
- data/lib/net-2.0/runFile.exe +0 -0
- data/lib/net-2.0/runFile.exe.config +43 -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
- metadata +262 -0
@@ -0,0 +1,262 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - OptionsDialog</title>
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
7
|
+
<meta http-equiv="Content-Language" content="en-US">
|
8
|
+
<link rel="stylesheet" type="text/css" href="nunit.css">
|
9
|
+
<link rel="shortcut icon" href="favicon.ico">
|
10
|
+
</head>
|
11
|
+
<!-- End Standard Head Part -->
|
12
|
+
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<!-- Standard Header for NUnit.org -->
|
16
|
+
<div id="header">
|
17
|
+
<a id="logo" href="http://www.nunit.org"><img src="img/logo.gif" alt="NUnit.org" title="NUnit.org"></a>
|
18
|
+
<div id="nav">
|
19
|
+
<a href="http://www.nunit.org">NUnit</a>
|
20
|
+
<a class="active" href="index.html">Documentation</a>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<!-- End of Header -->
|
24
|
+
|
25
|
+
<div id="content">
|
26
|
+
|
27
|
+
<h2>Options Dialog</h2>
|
28
|
+
|
29
|
+
<p>The Options Dialog is displayed using the Tools | Options menu item and allows the user to
|
30
|
+
control some aspects of NUnit�s operation. With NUnit 2.4.4, a tree-based dialog
|
31
|
+
replaced the older tabbed format.</p>
|
32
|
+
|
33
|
+
<hr><h3>Gui Options - General</h3><hr>
|
34
|
+
|
35
|
+
<div class="screenshot-right">
|
36
|
+
<img src="img/generalOptions.jpg"></div>
|
37
|
+
|
38
|
+
<h3>Gui Display</h3>
|
39
|
+
|
40
|
+
<h4>Full Gui</h4>
|
41
|
+
<p>Displays the complete gui - as in prior versions of NUnit. This includes the
|
42
|
+
errors and failures and other tabs and the progress bar.</p>
|
43
|
+
|
44
|
+
<h4>Mini Gui</h4>
|
45
|
+
<p>Switches the display to the mini-gui, which consists of the tree display
|
46
|
+
only.</p>
|
47
|
+
<h3>Recent Files</h3>
|
48
|
+
|
49
|
+
<p>The text box allows the user to choose the number of entries to display in the recent files list.
|
50
|
+
If <b>Load most recent project at startup</b> is checked, the GUI will load the last file opened unless it
|
51
|
+
is run with a specific filename or with the <code>/noload</code> parameter.</p>
|
52
|
+
|
53
|
+
<hr style="clear: both"><h3>Gui Options - Tree Display</h3><hr>
|
54
|
+
|
55
|
+
<div class="screenshot-right">
|
56
|
+
<img src="img/treeDisplayOptions.jpg"></div>
|
57
|
+
|
58
|
+
<h3>Tree View</h3>
|
59
|
+
|
60
|
+
<p>The list box allows selecting the degree of expansion of the tree when tests are loaded:</p>
|
61
|
+
<blockquote>
|
62
|
+
<p><b>Expand</b> � expands all tests</p>
|
63
|
+
<p><b>Collapse</b> � collapses all tests</p>
|
64
|
+
<p><b>Hide Tests</b> � expands all suites except for the fixtures themselves.</p>
|
65
|
+
<p><b>Auto</b> � selects one of the above based on the space available for the tree display.</p>
|
66
|
+
</blockquote>
|
67
|
+
|
68
|
+
<p>If <b>Clear results when reloading</b> is checked, an automatic or manual reload will reinitialize all
|
69
|
+
test nodes in the tree (grey display) � if it is not checked, result information for tests that do
|
70
|
+
not seem to have changed will be retained.</p>
|
71
|
+
|
72
|
+
<p>If <b>Save visual state of each project</b> is checked, NUnit saves the state of the tree
|
73
|
+
and restores it when the project is next opened. The information saved includes which
|
74
|
+
branches of the tree are expanded, the selected node, any checked nodes and any
|
75
|
+
category selection.
|
76
|
+
|
77
|
+
<p>If <b>Show Checkboxes</b> is checked, the tree includes checkboxes, which may
|
78
|
+
be used to select multiple tests for running.</p>
|
79
|
+
|
80
|
+
<hr style="clear: both"><h3>Gui Options - Test Results</h3><hr>
|
81
|
+
|
82
|
+
<div class="screenshot-right">
|
83
|
+
<img src="img/testResultOptions.jpg"></div>
|
84
|
+
|
85
|
+
<h3>Errors Tab</h3>
|
86
|
+
|
87
|
+
<p>Check <b>Display Errors and Failures Tab</b> to display the
|
88
|
+
<b>Errors and Failures</b> tab, which shows information about failing tests.
|
89
|
+
|
90
|
+
<p>Check <b>Enable Failure ToolTips</b> to display the tip window over the
|
91
|
+
Errors and Failures display and the stack trace. Clear it if you prefer not
|
92
|
+
to see the tip window.</p>
|
93
|
+
|
94
|
+
<p>Check <b>Enable Word Wrap</b> to turn on word wrapping
|
95
|
+
in the Errors and Failures display. While you can select this item and the
|
96
|
+
preceding one at the same time, they do not interact well, so you will
|
97
|
+
normally choose one or the other.</p>
|
98
|
+
|
99
|
+
<h3>Not Run Tab</h3>
|
100
|
+
|
101
|
+
<p>Check <b>Display Tests Not Run Tab</b> to display the
|
102
|
+
<b>Tests Not Run</b> tab, which shows information about tests that were
|
103
|
+
skipped or ignored.
|
104
|
+
|
105
|
+
<hr style="clear: both"><h3>Gui Options - Text Output</h3><hr>
|
106
|
+
|
107
|
+
<div class="screenshot-right">
|
108
|
+
<img src="img/textOutputOptions.jpg"></div>
|
109
|
+
|
110
|
+
<h3>Select Tab</h3>
|
111
|
+
|
112
|
+
<p>The <b>Select Tab</b> dropdown list is used to select one of the output tabs, for which
|
113
|
+
settings are to be viewed or changed. It also contains entries that allow
|
114
|
+
you to add a new tab or edit the list of tabs.
|
115
|
+
|
116
|
+
<p>The <b>Restore Defaults</b> button is used to restore the default
|
117
|
+
set of four tabs, in case you have modified the list of tabs.
|
118
|
+
|
119
|
+
<p>The <b>Title</b> text box is used to modify the title displayed
|
120
|
+
for the selected output tab.
|
121
|
+
|
122
|
+
<p><b>Enabled</b> is checked by default. If you uncheck it,
|
123
|
+
the selected tab will be removed from the tab control. This allows you to temporarily
|
124
|
+
suppress output to a tab without actually removing its definition.
|
125
|
+
|
126
|
+
<h3>Content</h3>
|
127
|
+
|
128
|
+
<p>The four check boxes enable or disable a particular type of output
|
129
|
+
on the selected output window. For each type, the display captures
|
130
|
+
output produced while your test is running - either by the test
|
131
|
+
itself or by the program you are testing.
|
132
|
+
|
133
|
+
<h4>Standard Output</h4>
|
134
|
+
<p>Captures all output written to Console.Error.
|
135
|
+
|
136
|
+
<h4>Error Output</h4>
|
137
|
+
<p>Captures all output written to Console.Error.
|
138
|
+
|
139
|
+
<h4>Trace Output</h4>
|
140
|
+
<p>Captures all output written to Trace or Debug.
|
141
|
+
|
142
|
+
<h4>Log Output</h4>
|
143
|
+
<p>Captures output written to a log4net log. NUnit captures
|
144
|
+
all output at the Error level or above unless another level
|
145
|
+
is specified for the DefaultLogThreshold setting in the
|
146
|
+
configuration file for the test assembly or project.
|
147
|
+
|
148
|
+
<h3>Test Labels</h3>
|
149
|
+
|
150
|
+
<p>Check <b>Display TestCase Labels</b> to precede text in the output window
|
151
|
+
with the name of the test that produced it.</p>
|
152
|
+
|
153
|
+
<p>Check <b>Suppress label if no output is displayed</b> to eliminate display
|
154
|
+
of labels for tests that produce no output in the window.
|
155
|
+
|
156
|
+
|
157
|
+
<hr style="clear: both"><h3>Test Loader Options - General</h3><hr>
|
158
|
+
|
159
|
+
<div class="screenshot-right">
|
160
|
+
<img src="img/testLoadOptions.jpg"></div>
|
161
|
+
|
162
|
+
<h3>Test Structure</h3>
|
163
|
+
|
164
|
+
<p>If <b>Automatic Namespace suites</b> is selected, tests will be
|
165
|
+
shown in a hierarchical listing based on namespaces. This is the
|
166
|
+
standard display as used in versions prior to NUnit 2.4.
|
167
|
+
|
168
|
+
<p>If <b>Flat list of TestFixtures</b> is selected, tests will be
|
169
|
+
shown as a sequential list of fixtures.
|
170
|
+
|
171
|
+
<h3>Multiple Assemblies</h3>
|
172
|
+
|
173
|
+
<p>If <b>Load in separate AppDomains</b> is selected, each assembly
|
174
|
+
in a multiple-assembly test run will be loaded in a separate AppDomain.
|
175
|
+
|
176
|
+
<p>If <b>Load in a single AppDomain</b> is selected, all assemblies in
|
177
|
+
a multiple-assembly test run will use the same AppDomain. This is
|
178
|
+
the standard behavior of NUnit prior to version 2.4.
|
179
|
+
|
180
|
+
<p>If <b>Merge tests across assemblies</b> is checked, the display of tests
|
181
|
+
will not be divided across assemblies. If automatic namespace suites are
|
182
|
+
used, they will be merged across all assemblies. This option is only
|
183
|
+
available when tests are run in the same appdomain.
|
184
|
+
|
185
|
+
<h3>Shadow Copy</h3>
|
186
|
+
|
187
|
+
<p>NUnit normally uses .Net shadow-copying in order to allow you to edit
|
188
|
+
and recompile assemblies while it is running. Uncheck this box to disable
|
189
|
+
shadow-copy only if you have a particular problem that requires it.</p>
|
190
|
+
|
191
|
+
<p><b>Note:</b> If you are tempted to disable shadow copy in order to access
|
192
|
+
files in the same directory as your assembly, you should be aware that there
|
193
|
+
are alternatives. Consider using the Assembly.Codebase property rather than
|
194
|
+
Assembly.Location.
|
195
|
+
|
196
|
+
<hr style="clear: both"><h3>Test Loader Options - Assembly Reload</h3><hr>
|
197
|
+
|
198
|
+
<div class="screenshot-right">
|
199
|
+
<img src="img/assemblyReloadOptions.jpg"></div>
|
200
|
+
|
201
|
+
<h3>Assembly Reload</h3>
|
202
|
+
|
203
|
+
<p>If <b>Reload before each test run</b> is checked, a reload will occur whenever the run button is
|
204
|
+
pressed whether the assemblies appear to have changed or not.</p>
|
205
|
+
|
206
|
+
<p>If <b>Reload when test assembly changes</b> is checked, assemblies are watched for any change and
|
207
|
+
an automatic reload is initiated. This item is disabled on Windows 98 or ME.</p>
|
208
|
+
|
209
|
+
<p>If <b>Re-run last tests run</b> is checked, tests are re-run whenever a Reload
|
210
|
+
takes place.</p>
|
211
|
+
|
212
|
+
<hr style="clear: both"><h3>IDE Support Options - Visual Studio</h3><hr>
|
213
|
+
|
214
|
+
<div class="screenshot-right">
|
215
|
+
<img src="img/visualStudioOptions.jpg"></div>
|
216
|
+
|
217
|
+
<h3>Visual Studio</h3>
|
218
|
+
|
219
|
+
<p>If <b>Enable Visual Studio Support</b> is checked, the user will be able to open Visual Studio projects
|
220
|
+
and solutions and add Visual Studio projects to existing test projects.</p>
|
221
|
+
|
222
|
+
|
223
|
+
</div>
|
224
|
+
|
225
|
+
<!-- Submenu -->
|
226
|
+
<div id="subnav">
|
227
|
+
<ul>
|
228
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
229
|
+
<ul>
|
230
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
231
|
+
<li><a href="assertions.html">Assertions</a></li>
|
232
|
+
<li><a href="attributes.html">Attributes</a></li>
|
233
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
234
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
235
|
+
<ul>
|
236
|
+
<li><a href="guiCommandLine.html">Command-Line</a></li>
|
237
|
+
<li><a href="mainMenu.html">Main Menu</a></li>
|
238
|
+
<li><a href="contextMenu.html">Context Menu</a></li>
|
239
|
+
<li id="current"><a href="optionsDialog.html">Options Dialog</a></li>
|
240
|
+
<li><a href="addinsDialog.html">Addins Dialog</a></li>
|
241
|
+
<li><a href="testProperties.html">Test Properties</a></li>
|
242
|
+
<li><a href="configEditor.html">Configuration Editor</a></li>
|
243
|
+
<li><a href="projectEditor.html">Project Editor</a></li>
|
244
|
+
</ul>
|
245
|
+
<li><a href="features.html">Other Features</a></li>
|
246
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
247
|
+
<li><a href="samples.html">Samples</a></li>
|
248
|
+
<li><a href="license.html">License</a></li>
|
249
|
+
</ul>
|
250
|
+
</ul>
|
251
|
+
</div>
|
252
|
+
<!-- End of Submenu -->
|
253
|
+
|
254
|
+
|
255
|
+
<!-- Standard Footer for NUnit.org -->
|
256
|
+
<div id="footer">
|
257
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
258
|
+
</div>
|
259
|
+
<!-- End of Footer -->
|
260
|
+
|
261
|
+
</body>
|
262
|
+
</html>
|
data/docs/platform.html
ADDED
@@ -0,0 +1,285 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
2
|
+
<html>
|
3
|
+
<!-- Standard Head Part -->
|
4
|
+
<head>
|
5
|
+
<title>NUnit - Platform</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
|
+
<script language="JavaScript" src="codeFuncs.js" ></script> <!-- Do it this way for IE -->
|
28
|
+
|
29
|
+
<style><!--
|
30
|
+
div.code { width: 34em }
|
31
|
+
--></style>
|
32
|
+
|
33
|
+
<h3>PlatformAttribute (NUnit 2.2.2)</h3>
|
34
|
+
<p>The Platform attribute is used to specify platforms for which a test or fixture
|
35
|
+
should be run. Platforms are specified using case-insensitive string values
|
36
|
+
and may be either included or excluded from the run by use of the Include or
|
37
|
+
Exclude properties respectively. Platforms to be included may alternatively
|
38
|
+
be specified as an argument to the PlatformAttribute constructor. In either
|
39
|
+
case, multiple comma-separated values may be specified.
|
40
|
+
|
41
|
+
<p>If a test or fixture with the Platform attribute does not satisfy the specified
|
42
|
+
platform requirements it is skipped. The test does not affect the outcome of
|
43
|
+
the run at all: it is not considered as ignored and is not even counted in
|
44
|
+
the total number of tests. In the gui, the tree node for the test remains
|
45
|
+
gray and the status bar color is not affected.</p>
|
46
|
+
|
47
|
+
<blockquote><i><b>Note:</b> In versions of NUnit prior to 2.4, these tests were
|
48
|
+
shown as ignored.</i></blockquote>
|
49
|
+
|
50
|
+
<h4>Test Fixture Syntax</h4>
|
51
|
+
|
52
|
+
<div class="code">
|
53
|
+
|
54
|
+
<div class="langFilter">
|
55
|
+
<a href="javascript:Show('DD1')" onmouseover="Show('DD1')"><img src="img/langFilter.gif" width="14" height="14" alt="Language Filter"></a>
|
56
|
+
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
57
|
+
<a href="javascript:ShowCS()">C#</a><br>
|
58
|
+
<a href="javascript:ShowVB()">VB</a><br>
|
59
|
+
<a href="javascript:ShowMC()">C++</a><br>
|
60
|
+
<a href="javascript:ShowJS()">J#</a><br>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<pre class="cs">namespace NUnit.Tests
|
65
|
+
{
|
66
|
+
using System;
|
67
|
+
using NUnit.Framework;
|
68
|
+
|
69
|
+
[TestFixture]
|
70
|
+
[Platform("NET-2.0")]
|
71
|
+
public class DotNetTwoTests
|
72
|
+
{
|
73
|
+
// ...
|
74
|
+
}
|
75
|
+
}
|
76
|
+
</pre>
|
77
|
+
|
78
|
+
<pre class="vb">Imports System
|
79
|
+
Imports Nunit.Framework
|
80
|
+
|
81
|
+
Namespace Nunit.Tests
|
82
|
+
|
83
|
+
<TestFixture(), Platform("NET-2.0")>
|
84
|
+
Public Class DotNetTwoTests
|
85
|
+
' ...
|
86
|
+
End Class
|
87
|
+
End Namespace
|
88
|
+
</pre>
|
89
|
+
|
90
|
+
<pre class="mc">#using <Nunit.Framework.dll>
|
91
|
+
using namespace System;
|
92
|
+
using namespace NUnit::Framework;
|
93
|
+
|
94
|
+
namespace NUnitTests
|
95
|
+
{
|
96
|
+
[TestFixture]
|
97
|
+
[Platform("NET-2.0")]
|
98
|
+
public __gc class DotNetTwoTests
|
99
|
+
{
|
100
|
+
// ...
|
101
|
+
};
|
102
|
+
}
|
103
|
+
|
104
|
+
#include "cppsample.h"
|
105
|
+
|
106
|
+
namespace NUnitTests {
|
107
|
+
// ...
|
108
|
+
}
|
109
|
+
</pre>
|
110
|
+
|
111
|
+
<pre class="js">package NUnit.Tests;
|
112
|
+
|
113
|
+
import System.*;
|
114
|
+
import NUnit.Framework.TestFixture;
|
115
|
+
|
116
|
+
|
117
|
+
/** @attribute NUnit.Framework.TestFixture() */
|
118
|
+
/** @attribute NUnit.Framework.Platform("NET-2.0") */
|
119
|
+
public class DotNetTwoTests
|
120
|
+
{
|
121
|
+
// ...
|
122
|
+
}
|
123
|
+
</pre>
|
124
|
+
</div>
|
125
|
+
<h4>Test Syntax</h4>
|
126
|
+
<div class="code">
|
127
|
+
|
128
|
+
<div class="langFilter">
|
129
|
+
<a href="javascript:Show('DD2')" onmouseover="Show('DD2')"><img src="img/langFilter.gif" width="14" height="14" alt="Language Filter"></a>
|
130
|
+
<div id="DD2" class="dropdown" style="display: none;" onclick="Hide('DD2')">
|
131
|
+
<a href="javascript:ShowCS()">C#</a><br>
|
132
|
+
<a href="javascript:ShowVB()">VB</a><br>
|
133
|
+
<a href="javascript:ShowMC()">C++</a><br>
|
134
|
+
<a href="javascript:ShowJS()">J#</a><br>
|
135
|
+
</div>
|
136
|
+
</div>
|
137
|
+
|
138
|
+
<pre class="cs">namespace NUnit.Tests
|
139
|
+
{
|
140
|
+
using System;
|
141
|
+
using NUnit.Framework;
|
142
|
+
|
143
|
+
[TestFixture]
|
144
|
+
public class SuccessTests
|
145
|
+
{
|
146
|
+
[Test]
|
147
|
+
[Platform(Exclude="Win98,WinME")]
|
148
|
+
public void SomeTest()
|
149
|
+
{ /* ... */ }
|
150
|
+
}
|
151
|
+
</pre>
|
152
|
+
|
153
|
+
<pre class="vb">Imports System
|
154
|
+
Imports Nunit.Framework
|
155
|
+
|
156
|
+
Namespace Nunit.Tests
|
157
|
+
|
158
|
+
<TestFixture()>
|
159
|
+
Public Class SuccessTests
|
160
|
+
<Test(), Platform(Exclude="Win98,WinME")> Public Sub SomeTest()
|
161
|
+
' ...
|
162
|
+
End Sub
|
163
|
+
End Class
|
164
|
+
End Namespace
|
165
|
+
</pre>
|
166
|
+
|
167
|
+
<pre class="mc">#using <Nunit.Framework.dll>
|
168
|
+
using namespace System;
|
169
|
+
using namespace NUnit::Framework;
|
170
|
+
|
171
|
+
namespace NUnitTests
|
172
|
+
{
|
173
|
+
[TestFixture]
|
174
|
+
public __gc class SuccessTests
|
175
|
+
{
|
176
|
+
[Test][Platform(Exclude="Win98,WinME")] void SomeTest();
|
177
|
+
};
|
178
|
+
}
|
179
|
+
|
180
|
+
#include "cppsample.h"
|
181
|
+
|
182
|
+
namespace NUnitTests {
|
183
|
+
// ...
|
184
|
+
}
|
185
|
+
</pre>
|
186
|
+
|
187
|
+
<pre class="js">package NUnit.Tests;
|
188
|
+
|
189
|
+
import System.*;
|
190
|
+
import NUnit.Framework.TestFixture;
|
191
|
+
|
192
|
+
|
193
|
+
/** @attribute NUnit.Framework.TestFixture() */
|
194
|
+
public class SuccessTests
|
195
|
+
{
|
196
|
+
/** @attribute NUnit.Framework.Test() */
|
197
|
+
/** @attribute NUnit.Framework.Platform(Exclude="Win98,WinME") */
|
198
|
+
public void SomeTest()
|
199
|
+
{ /* ... */ }
|
200
|
+
}
|
201
|
+
</pre>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
<h3>Platform Specifiers</h3>
|
206
|
+
<p>The following values are recognized as platform specifiers.
|
207
|
+
They may be expressed in upper, lower or mixed case.</p>
|
208
|
+
|
209
|
+
<ul class="across">
|
210
|
+
<li>Win</li>
|
211
|
+
<li>Win32</li>
|
212
|
+
<li>Win32S</li>
|
213
|
+
<li>Win32Windows</li>
|
214
|
+
<li>Win32NT</li>
|
215
|
+
<li>WinCE</li>
|
216
|
+
<li>Win95</li>
|
217
|
+
<li>Win98</li>
|
218
|
+
<li>WinMe</li>
|
219
|
+
<li>NT3</li>
|
220
|
+
<li>NT4</li>
|
221
|
+
<li>NT5</li>
|
222
|
+
<li>Win2K</li>
|
223
|
+
<li>WinXP</li>
|
224
|
+
<li>Win2003Server</li>
|
225
|
+
<li>Unix</li>
|
226
|
+
<li>Linux</li>
|
227
|
+
<li>Net</li>
|
228
|
+
<li>Net-1.0</li>
|
229
|
+
<li>Net-1.1</li>
|
230
|
+
<li>Net-2.0</li>
|
231
|
+
<li>NetCF</li>
|
232
|
+
<li>SSCLI</li>
|
233
|
+
<li>Rotor</li>
|
234
|
+
<li>Mono</li>
|
235
|
+
</ul>
|
236
|
+
|
237
|
+
</div>
|
238
|
+
|
239
|
+
<!-- Submenu -->
|
240
|
+
<div id="subnav">
|
241
|
+
<ul>
|
242
|
+
<li><a href="index.html">NUnit 2.4.8</a></li>
|
243
|
+
<ul>
|
244
|
+
<li><a href="getStarted.html">Getting Started</a></li>
|
245
|
+
<li><a href="assertions.html">Assertions</a></li>
|
246
|
+
<li><a href="attributes.html">Attributes</a></li>
|
247
|
+
<ul>
|
248
|
+
<li><a href="category.html">Category</a></li>
|
249
|
+
<li><a href="culture.html">Culture</a></li>
|
250
|
+
<li><a href="description.html">Description</a></li>
|
251
|
+
<li><a href="exception.html">Expected Exception</a></li>
|
252
|
+
<li><a href="explicit.html">Explicit</a></li>
|
253
|
+
<li><a href="ignore.html">Ignore</a></li>
|
254
|
+
<li id="current"><a href="platform.html">Platform</a></li>
|
255
|
+
<li><a href="property.html">Property</a></li>
|
256
|
+
<li><a href="setCulture.html">SetCulture</a></li>
|
257
|
+
<li><a href="setup.html">Setup</a></li>
|
258
|
+
<li><a href="setupFixture.html">SetUp Fixture</a></li>
|
259
|
+
<li><a href="suite.html">Suite</a></li>
|
260
|
+
<li><a href="teardown.html">Teardown</a></li>
|
261
|
+
<li><a href="test.html">Test</a></li>
|
262
|
+
<li><a href="testFixture.html">Test Fixture</a></li>
|
263
|
+
<li><a href="fixtureSetup.html">Test Fixture SetUp</a></li>
|
264
|
+
<li><a href="fixtureTeardown.html">Test Fixture TearDown</a></li>
|
265
|
+
</ul>
|
266
|
+
<li><a href="nunit-console.html">Console Runner</a></li>
|
267
|
+
<li><a href="nunit-gui.html">Gui Runner</a></li>
|
268
|
+
<li><a href="features.html">Other Features</a></li>
|
269
|
+
<li><a href="releaseNotes.html">Release Notes</a></li>
|
270
|
+
<li><a href="samples.html">Samples</a></li>
|
271
|
+
<li><a href="license.html">License</a></li>
|
272
|
+
</ul>
|
273
|
+
</ul>
|
274
|
+
</div>
|
275
|
+
<!-- End of Submenu -->
|
276
|
+
|
277
|
+
|
278
|
+
<!-- Standard Footer for NUnit.org -->
|
279
|
+
<div id="footer">
|
280
|
+
Copyright © 2008 Charlie Poole. All Rights Reserved.
|
281
|
+
</div>
|
282
|
+
<!-- End of Footer -->
|
283
|
+
|
284
|
+
</body>
|
285
|
+
</html>
|