From 1c65cdb68a001cb24243ceb1b9afad2da6eb73bc Mon Sep 17 00:00:00 2001 From: charliepoole <> Date: Thu, 1 Jul 2004 18:56:57 +0000 Subject: [PATCH] Modify display of alternate languages for examples and change javascript for compatibility with Mozilla Firefox. --- doc/category.html | 151 ++++++------------------------------- doc/css/styleGuide.css | 18 +++++ doc/css/styleGuideIE.css | 18 +++++ doc/css/styleGuideNN.css | 18 +++++ doc/exception.html | 106 ++++++++------------------ doc/explicit.html | 155 ++++++++++++++------------------------ doc/ignore.html | 159 ++++++++++++++------------------------- doc/setupTeardown.html | 158 +++++++++++++++----------------------- doc/suite.html | 67 +---------------- doc/test.html | 118 +++++++++++------------------ doc/testFixture.html | 115 ++++++++++------------------ 11 files changed, 367 insertions(+), 716 deletions(-) diff --git a/doc/category.html b/doc/category.html index b2474dfa..10c824e9 100644 --- a/doc/category.html +++ b/doc/category.html @@ -184,6 +184,7 @@ +
@@ -204,104 +205,50 @@ at any time. - -
|
diff --git a/doc/css/styleGuide.css b/doc/css/styleGuide.css index 8c20c9f6..14d0a533 100644 --- a/doc/css/styleGuide.css +++ b/doc/css/styleGuide.css @@ -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 diff --git a/doc/css/styleGuideIE.css b/doc/css/styleGuideIE.css index 508360b0..76ae874f 100644 --- a/doc/css/styleGuideIE.css +++ b/doc/css/styleGuideIE.css @@ -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 diff --git a/doc/css/styleGuideNN.css b/doc/css/styleGuideNN.css index b7a96a86..ffba408b 100644 --- a/doc/css/styleGuideNN.css +++ b/doc/css/styleGuideNN.css @@ -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 diff --git a/doc/exception.html b/doc/exception.html index 04b10724..da0cfccb 100644 --- a/doc/exception.html +++ b/doc/exception.html @@ -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. |
- namespace NUnit.Tests + | |||||
- |
- |||||
- C# | -- VB | -- Managed C++ | -
Test Fixture Syntax
-
-
-
- namespace NUnit.Tests + | ||||
+ namespace NUnit.Tests { using System; using NUnit.Framework; @@ -271,7 +260,7 @@ } }- |
- + | |||
+ Test Syntax |
||||
- |
- ||||
- C# | -- VB | -- Managed C++ | -- J# | -- |
- namespace NUnit.Tests + | |||||
- |
- |||||
- C# | -- VB | -- Managed C++ | -- J# | -
Test Fixture Syntax
-
+ run. This insures that tests will not be forgotten.
- namespace NUnit.Tests + | ||||
+ namespace NUnit.Tests { using System; using NUnit.Framework; @@ -274,7 +263,7 @@ } }- |
- + | |||
+ Test Syntax |
||||
- |
- ||||
- C# | -- VB | -- Managed C++ | -- J# | -- |
- namespace NUnit.Tests + | |||||
- |
- |||||
- C# | -- VB | -- Managed C++ | -- J# | -
TestFixtureSetUp/TestFixtureTearDown Example:
-- -
- namespace NUnit.Tests + | ||||
- C# - | -- VB - | -- Managed C++ - | -- J# - | -- |
SetUp/TearDown (NUnit 2.0)
@@ -357,11 +326,20 @@ public class SuccessTests
compile however.
SetUp/TearDown Example:
- namespace NUnit.Tests + | ||||
- C# - | -- VB - | -- Managed C++ - | -- J# - | -- |
Suite Attribute syntax
-
-
-
- namespace NUnit.Tests + | |||
- C# - | -
Test Example:
- - -
- namespace NUnit.Tests + | |||||
- C# - | -- VB - | -- Managed C++ - | -- J# - | -
Note: 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.
-TestFixture
Example:
Example:
- - -
- namespace NUnit.Tests + | |||||
- C# - | -- VB - | -- Managed C++ - | -- J# - | -