public void Compare_WithNullExpectedQuery_ReportErrorIsNotCalledOnTheReporter() { var comparer = GetSubject(); comparer.Compare(null, ""); _mockReporter.DidNotReceive().ReportError(Arg.Any <string>(), Arg.Any <object>(), Arg.Any <object>()); }
public void Handle_WithAGetRequestToInteractionsVerification_ReportErrorIsNotCalledOnReporter() { var context = new NancyContext { Request = new Request("GET", "/interactions/verification", "http") }; var handler = GetSubject(); handler.Handle(context); _mockReporter.DidNotReceive().ReportError(Arg.Any <string>(), Arg.Any <object>(), Arg.Any <object>()); }
public void Compare_WithUrlEncodingCaseInsensitiveMatching_NoExceptionsAreThrown() { var expected = "2014-08-31T00%3A00%3A00%2B10%3A00"; var actual = "2014-08-31T00%3a00%3a00%2b10%3a00"; var comparer = GetSubject(); comparer.Compare(expected, actual); _mockReporter.DidNotReceive().ReportError(Arg.Any <string>(), Arg.Any <object>(), Arg.Any <object>()); }
public void Verify() { _requestComparer.Compare(Expected, Actual); if (Match) { _reporter.DidNotReceive().ReportError(Arg.Any <string>(), Arg.Any <object>(), Arg.Any <object>()); } else { _reporter.Received(1).ReportError(Arg.Any <string>(), Arg.Any <object>(), Arg.Any <object>()); } }