202
202
This is a better mechanism than commenting out the test or renaming
203
203
methods, since the tests will be compiled with the rest of the code
204
204
and there is an indication at run time that a test is not being
205
run. This insures that tests will not be forgotten. <br>
207
<p><b>Test Fixture Syntax</b><br>
205
run. This insures that tests will not be forgotten.</p>
209
207
<script language="JavaScript">
210
function doClick(index, numTabs, id) {
211
document.all("tab" + id, index).className = "tab";
212
for (var i=1; i < numTabs; i++) {
213
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
215
document.all("code" + id, index).style.display = "";
216
for (var j=1; j < numTabs; j++) {
217
document.all("code" + id, (index + j) % numTabs).style.display = "none";
208
function Show( id ) {
209
document.getElementById(id).style.display = "";
211
function Hide( id ) {
212
document.getElementById(id).style.display = "none";
216
Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
217
Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
221
Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
222
Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
226
Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
227
Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
231
Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
232
Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
223
border-left:1px solid cccccc; border-bottom:1px solid cccccc; border-top:1px solid cccccc; border-right:1px solid cccccc; background-color:eeffff; padding-left:10; padding-right:10; padding-top:0; padding-bottom:0
227
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
230
border-right:0px none black;
231
background-color:eeeeee;
232
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
236
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
239
border-right:0px none black;
240
background-color:cccccc;
241
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
245
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
247
border-bottom:1px none cccccc;
248
border-right:1px none cccccc;
249
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
253
border-left:1px solid black; border-top:0px none cccccc; width:55%;
255
border-bottom:1px none cccccc;
256
border-right:1px none cccccc;
257
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
261
<table cellpadding="0" cellspacing="0" width="95%">
263
<td class="code" colspan="4">
264
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
236
<a href="javascript:Show('DD1')">
237
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
239
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
240
<a href="javascript:ShowCS()">C#</a><br>
241
<a href="javascript:ShowVB()">VB</a><br>
242
<a href="javascript:ShowMC()">C++</a><br>
243
<a href="javascript:ShowJS()">J#</a><br>
245
<table cellpadding="0" cellspacing="0">
247
<td class="bodytext">
248
<b>Test Fixture Syntax</b>
253
<pre id="CS1" style="display:">namespace NUnit.Tests
267
256
using NUnit.Framework;
322
<td class="topspace"><br>
330
<td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
332
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
334
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
335
<b>Managed C++</b> </td>
336
<td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
338
<td class="space"> </td>
342
<b>Test Syntax</b><br>
344
<table cellpadding="0" cellspacing="0" width="95%">
346
<td class="code" colspan="4">
347
<pre id="code_ctl3" style="display:">namespace NUnit.Tests
313
<td class="bodytext">
314
<b>Test Syntax</b><br>
319
<pre id="CS2" style="display:">namespace NUnit.Tests
350
322
using NUnit.Framework;
409
<td class="topspace"><br>
417
<td class="tab" id="tab_ctl3" onclick="doClick(0, 4, '_ctl3')">
419
<td class="backtab" id="tab_ctl3" onclick="doClick(1, 4, '_ctl3')">
421
<td class="backtab" id="tab_ctl3" onclick="doClick(2, 4, '_ctl3')">
422
<b>Managed C++</b> </td>
423
<td class="backtab" id="tab_ctl3" onclick="doClick(3, 4, '_ctl3')">
425
<td class="space"> </td>