#862 Tests with legacy ExpectedException attributes always pass

2.5
closed
nobody
nunit-gui (245)
7
2009-12-20
2009-08-13
No

Actual behaviour:

The following test when compiled against the NUnit 2.4 'nunit.framework' passes when executed with NUnit 2.5:

[Test, ExpectedException("UnknownException")]
public void ShouldFail()
{
throw new NullReferenceException();
}

Expected behaviour:

Test should fail.

Discussion

  • Charlie Poole

    Charlie Poole - 2009-08-13

    Does this only apply if it's compiled against a 2.4 release?

     
  • Jamie Cansdale

    Jamie Cansdale - 2009-08-13

    This only happens when tests have been compiled against 'nunit.framework' 2.4 or earlier.

    I'm guessing it will have something to do with the extra properties in the 2.5 version of this attribute.

     
  • Charlie Poole

    Charlie Poole - 2009-12-20
    • status: open --> closed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks