Skip to content

Copy/paste error in Assert.That documentation #2885

@jnm2

Description

@jnm2

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.

/// <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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions