drunkcod / Cone

8 stars 1 forks source link

Tests is not marked as failed when BeforeAll fails #19

Closed mattyas closed 12 years ago

mattyas commented 12 years ago
[TestFixture]
public class Class1
{
    [TestFixtureSetUp]
    public void Fail()
    {
        throw new Exception();
    }

    [Test]
    public void Test1() // Test is failing in NUnit
    {

    }
}

[Describe(typeof (Class2))]
public class Class2
{
    [BeforeAll]
    public void Fail()
    {
        throw new Exception();
    }

    public void Test2() // Test gets no status in NUnint, not Ok or Failed
    {

    }
}