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;
        }
Esempio n. 2
0
 public void AssertMessage(LoggingAssertion message, Action onError)
 {
     ExecuteAssert(new AssertionLogStream(message, onError ?? _onAssertFailure));
 }
Esempio n. 3
0
 public void AssertMessage(LoggingAssertion message)
 {
     AssertMessage(message, null);
 }