public void GetResponseCode_WhenResponseIsUnsuccessful_ReturnFalse() { HttpClientResponse response = new HttpClientResponse("SomeOtherResponseBody", new Dictionary <string, string>(), false); Assert.IsFalse(response.IsSuccessfulResponse()); }
public void GetResponseCode_WhenResponseIsSuccessful_ReturnTrue() { HttpClientResponse response = new HttpClientResponse("{Property1: 1, Property2: '2', Property3: {SubProperty1: 1}}", new Dictionary <string, string>(), true); Assert.IsTrue(response.IsSuccessfulResponse()); }