Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (16 sloc) 587 Bytes
namespace NHamcrest.XUnit
public class Assert : Xunit.Assert
public static void That<T>(T actual, IMatcher<T> matcher)
if (matcher.Matches(actual))
var description = new StringDescription();
var mismatchDescription = new StringDescription();
matcher.DescribeMismatch(actual, mismatchDescription);
throw new MatchException(description.ToString(), mismatchDescription.ToString(), null);
Jump to Line
Something went wrong with that request. Please try again.