← Back to team overview

nunit-core team mailing list archive

[Bug 666800] [NEW] Throws.Nothing doesn't work properly

 

Public bug reported:

The folowing Assert shouldn't fail but it fails

[Test]
public void NotThrown()
{
    Assert.That(() => null, Throws.Nothing);
}

NUnitBug.Tester.NotThrown:
System.ArgumentException : The actual value must be a TestDelegate
Parameter name: actual

at NUnit.Framework.Constraints.ThrowsNothingConstraint.Matches(Object actual)
at NUnit.Framework.Constraints.Constraint.Matches(ActualValueDelegate del)
at NUnitBug.Tester.NotThrown()

** Affects: nunitv2
     Importance: Undecided
         Status: New

-- 
Throws.Nothing doesn't work properly
https://bugs.launchpad.net/bugs/666800
You received this bug notification because you are a member of NUnit
Developers, which is subscribed to NUnit V2.

Status in NUnit V2 Test Framework: New

Bug description:
The folowing Assert shouldn't fail but it fails

[Test]
public void NotThrown()
{
    Assert.That(() => null, Throws.Nothing);
}

NUnitBug.Tester.NotThrown:
System.ArgumentException : The actual value must be a TestDelegate
Parameter name: actual

at NUnit.Framework.Constraints.ThrowsNothingConstraint.Matches(Object actual)
at NUnit.Framework.Constraints.Constraint.Matches(ActualValueDelegate del)
at NUnitBug.Tester.NotThrown()





Follow ups

References