public AssertionLogStream(LoggingAssertion message, Action onError) { if (onError == null) { throw new ArgumentNullException("onError"); } if (message == null) { throw new ArgumentNullException("message"); } initializeDelegates(_onError = onError); _message = message; }
public void AssertMessage(LoggingAssertion message, Action onError) { ExecuteAssert(new AssertionLogStream(message, onError ?? _onAssertFailure)); }
public void AssertMessage(LoggingAssertion message) { AssertMessage(message, null); }