Modify display of alternate languages for examples and change javascript
for compatibility with Mozilla Firefox.
This commit is contained in:
Родитель
129a6929da
Коммит
1c65cdb68a
|
@ -184,6 +184,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td valign="top"><br>
|
||||
|
@ -204,104 +205,50 @@
|
|||
at any time.</p>
|
||||
|
||||
<script language="JavaScript">
|
||||
/* function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}*/
|
||||
function Show( id ) {
|
||||
id.style.display="";
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
function Hide( id ) {
|
||||
id.style.display="none";
|
||||
document.getElementById(id).style.display = "none";
|
||||
}
|
||||
function ShowCS()
|
||||
{
|
||||
Show(CS1); Hide(VB1); Hide(MC1); Hide(JS1);
|
||||
Show(CS2); Hide(VB2); Hide(MC2); Hide(JS2);
|
||||
Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowVB()
|
||||
{
|
||||
Hide(CS1); Show(VB1); Hide(MC1); Hide(JS1);
|
||||
Hide(CS2); Show(VB2); Hide(MC2); Hide(JS2);
|
||||
Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowMC()
|
||||
{
|
||||
Hide(CS1); Show(VB1); Hide(MC1); Hide(JS1);
|
||||
Hide(CS2); Show(VB2); Hide(MC2); Hide(JS2);
|
||||
Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowJS()
|
||||
{
|
||||
Hide(CS1); Show(VB1); Hide(MC1); Hide(JS1);
|
||||
Hide(CS2); Show(VB2); Hide(MC2); Hide(JS2);
|
||||
Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
div.dropdown {
|
||||
border-left:1px solid cccccc; border-bottom:1px solid cccccc; border-top:1px solid cccccc; border-right:1px solid cccccc; background-color:ffffdd; padding-left:10; padding-right:10; padding-top:0; padding-bottom:0; text-align: left;
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<tr>
|
||||
<td class="bodytext" colspan="3">
|
||||
<b>Test Fixture Syntax</b>
|
||||
</td>
|
||||
<td class="bodytext" align="right">
|
||||
<a href="javascript:Show(DD1)">
|
||||
<a href="javascript:Show('DD1')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD1" class="dropdown" style="position: absolute; display: none;" onclick="Hide(DD1)" onmouseleave="Hide(DD1)">
|
||||
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="bodytext">
|
||||
<b>Test Fixture Syntax</b>
|
||||
</td>
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
|
@ -360,44 +307,13 @@ public class LongRunningTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td colspan="5"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
|
||||
<b>C#</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
|
||||
<b>VB</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
|
||||
<b>Managed C++</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
|
||||
<b>J#</b> </td>
|
||||
<td class="space"> </td>
|
||||
</tr>-->
|
||||
<!-- </table>
|
||||
<br>
|
||||
<table cellpadding="0" cellspacing="0" width="95%"> -->
|
||||
<tr>
|
||||
<td class="bodytext" colspan="3">
|
||||
<td class="bodytext">
|
||||
<b>Test Syntax</b>
|
||||
</td>
|
||||
<td class="bodytext" align="right">
|
||||
<a href="javascript:Show(DD2)">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD2" class="dropdown" style="position: absolute; display: none;" onclick="Hide(DD2)" onmouseleave="Hide(DD2)">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
</td>
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<td class="code">
|
||||
<pre id="CS2" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
|
@ -460,36 +376,17 @@ public class SuccessTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- <tr>
|
||||
<td colspan="5"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl3" onclick="doClick(0, 4, '_ctl3')">
|
||||
<b>C#</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(1, 4, '_ctl3')">
|
||||
<b>VB</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(2, 4, '_ctl3')">
|
||||
<b>Managed C++</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(3, 4, '_ctl3')">
|
||||
<b>J#</b> </td>
|
||||
<td class="space"> </td>
|
||||
</tr>-->
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="lefttables">
|
||||
<tr>
|
||||
<div class="copyrighttext">
|
||||
<br><hr>
|
||||
<td class="copyrighttext"><br>
|
||||
<br>
|
||||
Copyright © 2004 Charlie Poole. All
|
||||
Rights Reserved. </td>
|
||||
</tr>
|
||||
</table>
|
||||
Rights Reserved.
|
||||
</div>
|
||||
</td>
|
||||
<td width="1" valign="top">
|
||||
<img src="img/sideDivider.gif" width="1" height="435" alt="|"></td>
|
||||
|
|
|
@ -45,6 +45,16 @@ a:active {
|
|||
padding: 0px 0px 0px 5px;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
position: absolute;
|
||||
border: 1px solid cccccc;
|
||||
background-color:ffffdd;
|
||||
padding-left:10;
|
||||
padding-right:10;
|
||||
padding-top:0;
|
||||
padding-bottom:0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rightimg {
|
||||
background: #FFFFFF url(../img/sideImg.gif);
|
||||
|
@ -118,6 +128,9 @@ a:active {
|
|||
|
||||
|
||||
.copyrighttext {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
text-align: center;
|
||||
font-family: "Verdana", "Arial", "Helvetica", sans-serif;
|
||||
font-size: 0.61em;
|
||||
letter-spacing: 1em
|
||||
|
@ -141,6 +154,11 @@ a:active {
|
|||
color: #000000;
|
||||
}
|
||||
|
||||
.code {
|
||||
border: 1px solid cccccc;
|
||||
background-color:eeffff;
|
||||
padding-left:10; padding-right:10; padding-top:0; padding-bottom
|
||||
}
|
||||
|
||||
.tableRowSpace {
|
||||
background:#999999
|
||||
|
|
|
@ -43,6 +43,16 @@ a:active {
|
|||
padding: 0px 0px 0px 5px;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
position: absolute;
|
||||
border: 1px solid cccccc;
|
||||
background-color:ffffdd;
|
||||
padding-left:10;
|
||||
padding-right:10;
|
||||
padding-top:0;
|
||||
padding-bottom:0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rightimg {
|
||||
background: #FFFFFF url('../img/sideImg.gif') repeat-y;
|
||||
|
@ -116,6 +126,9 @@ a:active {
|
|||
|
||||
|
||||
.copyrighttext {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
text-align: center;
|
||||
font-family: "Verdana", "Arial", "Helvetica", sans-serif;
|
||||
font-size: 0.61em;
|
||||
letter-spacing: 0em
|
||||
|
@ -140,6 +153,11 @@ a:active {
|
|||
color: #000000;
|
||||
}
|
||||
|
||||
.code {
|
||||
border: 1px solid cccccc;
|
||||
background-color:eeffff;
|
||||
padding-left:10; padding-right:10; padding-top:0; padding-bottom
|
||||
}
|
||||
|
||||
.tableRowSpace {
|
||||
background:#999999
|
||||
|
|
|
@ -42,6 +42,16 @@ a:active {
|
|||
padding: 0px 0px 0px 5px;
|
||||
}
|
||||
|
||||
.dropdown {
|
||||
position: absolute;
|
||||
border: 1px solid cccccc;
|
||||
background-color:ffffdd;
|
||||
padding-left:10;
|
||||
padding-right:10;
|
||||
padding-top:0;
|
||||
padding-bottom:0;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.rightimg {
|
||||
background-repeat: repeat-y;
|
||||
|
@ -115,6 +125,9 @@ a:active {
|
|||
|
||||
|
||||
.copyrighttext {
|
||||
margin-left: 5%;
|
||||
margin-right: 5%;
|
||||
text-align: center;
|
||||
font-family: "Verdana", "Arial", "Helvetica", sans-serif;
|
||||
font-size: 0.61em;
|
||||
letter-spacing: 1em
|
||||
|
@ -138,6 +151,11 @@ a:active {
|
|||
color: #000000;
|
||||
}
|
||||
|
||||
.code {
|
||||
border: 1px solid cccccc;
|
||||
background-color:eeffff;
|
||||
padding-left:10; padding-right:10; padding-top:0; padding-bottom
|
||||
}
|
||||
|
||||
.tableRowSpace {
|
||||
background:#999999
|
||||
|
|
|
@ -196,66 +196,40 @@
|
|||
The runner will execute the test and if it throws the specific exception,
|
||||
then the test passes. If it throws a different exception the test
|
||||
will fail. This is true even if the thrown exception inherits from
|
||||
the expected exception.<br>
|
||||
<br>
|
||||
ExpectedException Example:</p>
|
||||
<p>
|
||||
the expected exception.</p>
|
||||
<p><b>Example:</b></p>
|
||||
<script language="JavaScript">
|
||||
function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}
|
||||
function Show( id ) {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
function Hide( id ) {
|
||||
document.getElementById(id).style.display = "none";
|
||||
}
|
||||
function ShowCS()
|
||||
{
|
||||
Show('CS1'); Hide('VB1'); Hide('MC1');
|
||||
}
|
||||
function ShowVB()
|
||||
{
|
||||
Hide('CS1'); Show('VB1'); Hide('MC1');
|
||||
}
|
||||
function ShowMC()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Show('MC1');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
</p>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<a href="javascript:Show('DD1')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -270,7 +244,7 @@
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">Imports System
|
||||
<pre id="VB1" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -283,7 +257,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC1" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -304,20 +278,6 @@ namespace NUnitTests {
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 3, '_ctl2')">
|
||||
<b>C#</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 3, '_ctl2')">
|
||||
<b>VB</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 3, '_ctl2')">
|
||||
<b>Managed C++</b> </td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
|
|
@ -202,64 +202,53 @@
|
|||
it as if it had been ignored. The progress bar turns yellow and
|
||||
the test is listed in the report of tests not run</p>
|
||||
|
||||
<p><b>Test Fixture Syntax</b><br>
|
||||
<br>
|
||||
<script language="JavaScript">
|
||||
function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}
|
||||
function Show( id ) {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
function Hide( id ) {
|
||||
document.getElementById(id).style.display = "none";
|
||||
}
|
||||
function ShowCS()
|
||||
{
|
||||
Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowVB()
|
||||
{
|
||||
Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowMC()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowJS()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
</p>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<a href="javascript:Show('DD1')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
|
||||
<td class="bodytext">
|
||||
<b>Test Fixture Syntax</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -271,7 +260,7 @@
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">Imports System
|
||||
<pre id="VB1" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -282,7 +271,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC1" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -302,7 +291,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS1" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -316,32 +305,15 @@ public class ExplicitTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"><br>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodytext">
|
||||
<b>Test Syntax</b><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
|
||||
<b>C#</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
|
||||
<b>VB</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
|
||||
<b>Managed C++</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
|
||||
<b>J#</b> </td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<b>Test Syntax</b><br>
|
||||
<br>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl3" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS2" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -354,7 +326,7 @@ public class ExplicitTests
|
|||
{ /* ... */ }
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">Imports System
|
||||
<pre id="VB2" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -367,7 +339,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC2" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -386,7 +358,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS2" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -402,23 +374,6 @@ public class SuccessTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl3" onclick="doClick(0, 4, '_ctl3')">
|
||||
<b>C#</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(1, 4, '_ctl3')">
|
||||
<b>VB</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(2, 4, '_ctl3')">
|
||||
<b>Managed C++</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(3, 4, '_ctl3')">
|
||||
<b>J#</b> </td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
|
159
doc/ignore.html
159
doc/ignore.html
|
@ -202,66 +202,55 @@
|
|||
This is a better mechanism than commenting out the test or renaming
|
||||
methods, since the tests will be compiled with the rest of the code
|
||||
and there is an indication at run time that a test is not being
|
||||
run. This insures that tests will not be forgotten. <br>
|
||||
</p>
|
||||
<p><b>Test Fixture Syntax</b><br>
|
||||
<br>
|
||||
run. This insures that tests will not be forgotten.</p>
|
||||
|
||||
<script language="JavaScript">
|
||||
function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}
|
||||
function Show( id ) {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
function Hide( id ) {
|
||||
document.getElementById(id).style.display = "none";
|
||||
}
|
||||
function ShowCS()
|
||||
{
|
||||
Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowVB()
|
||||
{
|
||||
Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowMC()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowJS()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
</p>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<a href="javascript:Show('DD1')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
|
||||
<td class="bodytext">
|
||||
<b>Test Fixture Syntax</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -274,7 +263,7 @@
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">Imports System
|
||||
<pre id="VB1" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -285,7 +274,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC1" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -305,7 +294,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS1" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -319,32 +308,15 @@ public class SuccessTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"><br>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bodytext">
|
||||
<b>Test Syntax</b><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
|
||||
<b>C#</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
|
||||
<b>VB</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
|
||||
<b>Managed C++</b> </td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
|
||||
<b>J#</b> </td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<b>Test Syntax</b><br>
|
||||
<br>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl3" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS2" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -358,7 +330,7 @@ public class SuccessTests
|
|||
{ /* ... */ }
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">Imports System
|
||||
<pre id="VB2" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -371,7 +343,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC2" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -390,7 +362,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS2" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -406,23 +378,6 @@ public class SuccessTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl3" onclick="doClick(0, 4, '_ctl3')">
|
||||
<b>C#</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(1, 4, '_ctl3')">
|
||||
<b>VB</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(2, 4, '_ctl3')">
|
||||
<b>Managed C++</b> </td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(3, 4, '_ctl3')">
|
||||
<b>J#</b> </td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
|
|
@ -188,62 +188,49 @@
|
|||
have only one TestFixtureSetUp method and only one
|
||||
TestFixtureTearDown method. If more than one of each type is defined
|
||||
the TestFixture will not be run. It will compile however.</p>
|
||||
<p>TestFixtureSetUp/TestFixtureTearDown Example:</p>
|
||||
<p><script language="JavaScript">
|
||||
function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}
|
||||
<p><b>Example:</b></p>
|
||||
<script language="JavaScript">
|
||||
function Show( id ) {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
function Hide( id ) {
|
||||
document.getElementById(id).style.display = "none";
|
||||
}
|
||||
function ShowCS()
|
||||
{
|
||||
Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowVB()
|
||||
{
|
||||
Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowMC()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowJS()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<a href="javascript:Show('DD1')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl3" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -262,7 +249,7 @@
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">Imports System
|
||||
<pre id="VB1" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -282,7 +269,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC1" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -304,7 +291,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl3" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS1" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -328,24 +315,6 @@ public class SuccessTests
|
|||
</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl3" onclick="doClick(0, 4, '_ctl3')">
|
||||
<b>C#</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(1, 4, '_ctl3')">
|
||||
<b>VB</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(2, 4, '_ctl3')">
|
||||
<b>Managed C++</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl3" onclick="doClick(3, 4, '_ctl3')">
|
||||
<b>J#</b>
|
||||
</td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table> <br>
|
||||
|
||||
<p><b><a name="SetUp/TearDown">SetUp/TearDown</a> (NUnit 2.0)</b><br>
|
||||
|
@ -357,11 +326,20 @@ public class SuccessTests
|
|||
compile however.</p>
|
||||
<p></p>
|
||||
<p></p>
|
||||
<p>SetUp/TearDown Example:<br></p>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<p><b>Example:</b></p>
|
||||
<a href="javascript:Show('DD2')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD2" class="dropdown" style="display: none;" onclick="Hide('DD2')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS2" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -380,7 +358,7 @@ public class SuccessTests
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">Imports System
|
||||
<pre id="VB2" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -400,7 +378,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC2" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -422,7 +400,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS2" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -446,24 +424,6 @@ public class SuccessTests
|
|||
</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
|
||||
<b>C#</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
|
||||
<b>VB</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
|
||||
<b>Managed C++</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
|
||||
<b>J#</b>
|
||||
</td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table> <br>
|
||||
<br>
|
||||
<b>SetUp/TearDown Inheritance</b> <br>
|
||||
|
|
|
@ -184,61 +184,10 @@
|
|||
<p><b>Suite Attribute syntax</b> <br>
|
||||
<br>
|
||||
|
||||
<script language="JavaScript">
|
||||
function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="2">
|
||||
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -261,16 +210,6 @@
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3"><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 1, '_ctl2')">
|
||||
<b>C#</b>
|
||||
</td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
|
118
doc/test.html
118
doc/test.html
|
@ -185,62 +185,49 @@
|
|||
that does not have the correct signature it will not be run and
|
||||
it will appear in the Test Not Run area in the UI that ran the program.</p>
|
||||
<p></p>
|
||||
<p>Test Example:</p>
|
||||
<script language="JavaScript">
|
||||
function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}
|
||||
<p><b>Example:</b></p>
|
||||
<script language="JavaScript">
|
||||
function Show( id ) {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
function Hide( id ) {
|
||||
document.getElementById(id).style.display = "none";
|
||||
}
|
||||
function ShowCS()
|
||||
{
|
||||
Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Show('CS2'); Hide('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowVB()
|
||||
{
|
||||
Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Show('VB2'); Hide('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowMC()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Show('MC2'); Hide('JS2');
|
||||
}
|
||||
function ShowJS()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
|
||||
Hide('CS2'); Hide('VB2'); Hide('MC2'); Show('JS2');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<a href="javascript:Show('DD1')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -256,7 +243,7 @@
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">Imports System
|
||||
<pre id="VB1" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -268,7 +255,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC1" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -287,7 +274,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS1" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -302,25 +289,6 @@ public class SuccessTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
|
||||
<b>C#</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
|
||||
<b>VB</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
|
||||
<b>Managed C++</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
|
||||
<b>J#</b>
|
||||
</td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table><p></p>
|
||||
</td>
|
||||
|
|
|
@ -181,63 +181,45 @@
|
|||
<p><b>Note:</b> There are a few restrictions. The class must have a default
|
||||
constructor. The class must also be a publicly exported type or
|
||||
the program that dynamically builds suites will not see it.</p>
|
||||
<p><code>TestFixture</code> Example:</p>
|
||||
<p><b>Example:</b></p>
|
||||
<p>
|
||||
<script language="JavaScript">
|
||||
function doClick(index, numTabs, id) {
|
||||
document.all("tab" + id, index).className = "tab";
|
||||
for (var i=1; i < numTabs; i++) {
|
||||
document.all("tab" + id, (index + i) % numTabs).className = "backtab";
|
||||
}
|
||||
document.all("code" + id, index).style.display = "";
|
||||
for (var j=1; j < numTabs; j++) {
|
||||
document.all("code" + id, (index + j) % numTabs).style.display = "none";
|
||||
}
|
||||
}
|
||||
<script language="JavaScript">
|
||||
function Show( id ) {
|
||||
document.getElementById(id).style.display = "";
|
||||
}
|
||||
function Hide( id ) {
|
||||
document.getElementById(id).style.display = "none";
|
||||
}
|
||||
function ShowCS()
|
||||
{
|
||||
Show('CS1'); Hide('VB1'); Hide('MC1'); Hide('JS1');
|
||||
}
|
||||
function ShowVB()
|
||||
{
|
||||
Hide('CS1'); Show('VB1'); Hide('MC1'); Hide('JS1');
|
||||
}
|
||||
function ShowMC()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Show('MC1'); Hide('JS1');
|
||||
}
|
||||
function ShowJS()
|
||||
{
|
||||
Hide('CS1'); Hide('VB1'); Hide('MC1'); Show('JS1');
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
td.code {
|
||||
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
|
||||
}
|
||||
|
||||
td.tab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:eeeeee;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.backtab {
|
||||
border-left:1px solid black; border-top:1px solid black; border-bottom:1px solid black; text-align:center;
|
||||
width:15%;
|
||||
padding:3;
|
||||
border-right:0px none black;
|
||||
background-color:cccccc;
|
||||
cursor:hand; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.topspace {
|
||||
border-left:1px none cccccc; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
|
||||
td.space {
|
||||
border-left:1px solid black; border-top:0px none cccccc; width:55%;
|
||||
padding:0;
|
||||
border-bottom:1px none cccccc;
|
||||
border-right:1px none cccccc;
|
||||
background-color:white; font-style:normal; font-variant:normal; font-weight:normal; font-size:8pt; font-family:verdana
|
||||
}
|
||||
</style>
|
||||
<table cellpadding="0" cellspacing="0" width="95%">
|
||||
<a href="javascript:Show('DD1')">
|
||||
<img src="img/langFilter.gif" height="14" width="14" alt="Language Filter">
|
||||
</a>
|
||||
<div id="DD1" class="dropdown" style="display: none;" onclick="Hide('DD1')">
|
||||
<a href="javascript:ShowCS()">C#</a><br>
|
||||
<a href="javascript:ShowVB()">VB</a><br>
|
||||
<a href="javascript:ShowMC()">C++</a><br>
|
||||
<a href="javascript:ShowJS()">J#</a><br>
|
||||
</div>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<td class="code" colspan="4">
|
||||
<pre id="code_ctl2" style="display:">namespace NUnit.Tests
|
||||
<td class="code">
|
||||
<pre id="CS1" style="display:">namespace NUnit.Tests
|
||||
{
|
||||
using System;
|
||||
using NUnit.Framework;
|
||||
|
@ -249,7 +231,7 @@
|
|||
}
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">Imports System
|
||||
<pre id="VB1" style="display:none">Imports System
|
||||
Imports Nunit.Framework
|
||||
|
||||
Namespace Nunit.Tests
|
||||
|
@ -259,7 +241,7 @@ Namespace Nunit.Tests
|
|||
End Class
|
||||
End Namespace
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">#using <Nunit.Framework.dll>
|
||||
<pre id="MC1" style="display:none">#using <Nunit.Framework.dll>
|
||||
using namespace System;
|
||||
using namespace NUnit::Framework;
|
||||
|
||||
|
@ -278,7 +260,7 @@ namespace NUnitTests {
|
|||
// ...
|
||||
}
|
||||
</pre>
|
||||
<pre id="code_ctl2" style="display:none">package NUnit.Tests;
|
||||
<pre id="JS1" style="display:none">package NUnit.Tests;
|
||||
|
||||
import System.*;
|
||||
import NUnit.Framework.TestFixture;
|
||||
|
@ -291,25 +273,6 @@ public class SuccessTests
|
|||
}
|
||||
</pre>
|
||||
</td>
|
||||
<td class="topspace"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><br></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tab" id="tab_ctl2" onclick="doClick(0, 4, '_ctl2')">
|
||||
<b>C#</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(1, 4, '_ctl2')">
|
||||
<b>VB</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(2, 4, '_ctl2')">
|
||||
<b>Managed C++</b>
|
||||
</td>
|
||||
<td class="backtab" id="tab_ctl2" onclick="doClick(3, 4, '_ctl2')">
|
||||
<b>J#</b>
|
||||
</td>
|
||||
<td class="space"> </td>
|
||||
</tr>
|
||||
</table><p></p>
|
||||
<p></p>
|
||||
|
|
Загрузка…
Ссылка в новой задаче