public void CompletedDelayedResponseToStringCallsBase() { DelayedResponse delayedResponse = new DelayedResponse(new HttpMessage(new MockRequest(), new ResponseClassifier())); delayedResponse.SetLiveResponse(new MockResponse(200, "Yay"), false); Assert.AreEqual("Status: 200, ReasonPhrase: Yay", delayedResponse.ToString()); }
public void DelayedResponseToStringDoesntThrow() { DelayedResponse delayedResponse = new DelayedResponse(new HttpMessage(new MockRequest(), new ResponseClassifier())); Assert.AreEqual("Status: NotSent, the batch has not been submitted yet", delayedResponse.ToString()); }