public static void AssertInvalid(this IResult result, string errorMessagePattern) { if (result.State != ResultState.Invalid) { result.AssertInvalid(); } else { AssertErrorMessageMatch(errorMessagePattern, result.Message); } }
public void Assert() { ActualResult.AssertInvalid(ExpectedMessage); }