ITestMatcher ITestMatcherFactory.CreateMatcher(TestContext testContext) { var flags = RecordExceptionFlags.UnwindTargetExceptions; if (testContext.ShouldVerify) { flags |= RecordExceptionFlags.StrictVerification; } return(Matchers.Throw(ExceptionType).WithFlags(flags)); }
public void DoesNotThrow(Action action, string message, params object[] args) { NotThat(action, Matchers.Throw(), message, args); }
public void DoesNotThrow(Action action) { NotThat(action, Matchers.Throw()); }
public static void Exception(this IExceptionExpectation e, string message, params object[] args) { e.Like(Matchers.Throw(), message, (object[])args); }
public static void Exception <TException>(this IExceptionExpectation e, string message, params object[] args) where TException : Exception { e.Like(Matchers.Throw <TException>(), message, (object[])args); }
public void Throws(Type exceptionType, Action action, string message, params object[] args) { That(action, Matchers.Throw(exceptionType), message, args); }
public void Throws(Type exceptionType, Action action) { That(action, Matchers.Throw(exceptionType)); }
public void DoesNotThrow(Type exceptionType, Action action) { NotThat(action, Matchers.Throw(exceptionType)); }