nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #01284
[Bug 666800] Re: Throws.Nothing doesn't work properly
** Changed in: nunitv2
Status: Triaged => Fix Committed
--
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: Fix Committed
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()
References