FIT Test Loading Tests

These tests create a test assembly from a snippet of code and then load and run the tests that it contains. For this demo, a few errors have been introduced just to show what they look like.

Note: The table was generated by software that does follow the standards of this website. The HTML has been edited in order to display colors correctly.

NUnit.Fixtures.TestLoadFixture
Code Tree() Run() Skipped() Ignored() Failures()
public class TestClass
{
}
EMPTY 0000
using NUnit.Framework;

[TestFixture]
public class TestClass
{
}
TestClass 0000
using NUnit.Framework;

[TestFixture]
public class TestClass
{
    [Test]
    public void T1() { }
    [Text]
    public void T2() { }
    [Test]
    public void T3() { }
}
Compiler errors
D:\Dev\NUnit\nunit-2.4\fit> "c:\windows\microsoft.net\framework\v1.1.4322\csc.exe" /t:library /utf8output /R:"system.dll" /R:"nunit.framework.dll" /out:"test.dll" /debug- /optimize+ ".\22wcmxwk.0.cs"


Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.

22wcmxwk.0.cs(1,92): error CS0246: The type or namespace name 'Text' could not be found (are you missing a using directive or an assembly reference?)
TestClass
>T1
>T2
>T3
expected
TestClass
actual
3 expected
0 actual
000
using NUnit.Framework;

[TestFixture]
public class TestClass1
{
    [Test]
    public void T1() { }
}

[TestFixture]
public class TestClass2
{
    [Test]
    public void T2() { }
    [Test]
    public void T3() { }
}
TestClass1
>T1
TestClass2
>T2
>T3
3000
using NUnit.Framework;

[TestFixture]
public class TestClass
{
    [Test]
    public void T1() { }
    [Test, Ignore]
    public void T2() { }
    [Test]
    public void T3() { }
}
TestClass
>T1
>T2
>T3
2010
using NUnit.Framework;

[TestFixture]
public class TestClass
{
    [Test]
    public void T1() { }
    [Test, Explicit]
    public void T2() { }
    [Test]
    public void T3() { }
}
TestClass
>T1
>T2
>T3
2100