public
Description: An NUnit test runner for ASPUnit (run classic ASP unit tests from NUnit)
Homepage: http://www.mikehenry.name/
Clone URL: git://github.com/mhenry07/ASPUnitRunner.git
100644 24 lines (20 sloc) 0.826 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using NUnit.Framework;
using AspUnitRunner;
 
namespace asp.NUnitTests {
[TestFixture]
    public class TestAsp {
        // set the URI for your ASPUnit tests
        private const string AspUnitUri = "http://localhost/AspUnitRunner/asp.tests/";
 
[Test]
        public void TestCase(
            // set ASPUnit test containers here
[Values("CalculatorTest", "StringUtilityTest")] string testContainer
            ) {
            Runner runner = new Runner(AspUnitUri);
            Results results = runner.Run(testContainer);
 
            // Note: results.Details can generate a long HTML string which NUnit doesn't format very well
            Assert.That(results.Errors, Is.EqualTo(0), results.Details);
            Assert.That(results.Failures, Is.EqualTo(0), results.Details);
        }
    }
}