internal Observation(string message, Func <bool> isFailure) { MessageValidator.Assert(message); this.message = message.Trim(); callback = isFailure; }
internal Error(Exception exception) { if (exception == null) { throw new ArgumentNullException("Exception cannot be null"); } MessageValidator.Assert(exception.Message); Information = exception; }
internal Information(string message) { MessageValidator.Assert(message); this.message = message.Trim(); }
internal Error(string message) { MessageValidator.Assert(message); Information = new Exception(message.Trim()); }