-
Notifications
You must be signed in to change notification settings - Fork 748
Closed
Description
Every time an Assert.That overload has A ThrowsConstraint used in the test
, it should be replaced with A Constraint expression to be applied
to be more consistent with the other Assert.That overloads (and more truthful).
Also, the summary should be updated the same way.
nunit/src/NUnitFramework/framework/Assert.That.cs
Lines 175 to 181 in 5cfc6da
/// <summary> | |
/// Asserts that the code represented by a delegate throws an exception | |
/// that satisfies the constraint provided. | |
/// </summary> | |
/// <param name="code">A TestDelegate to be executed</param> | |
/// <param name="constraint">A ThrowsConstraint used in the test</param> | |
public static void That(TestDelegate code, IResolveConstraint constraint) |