public void ThrowExceptionOnUnsuccessfulStatus_WhenUnsuccessfulAndUnsupportedStatusCode_ThrowException() { var testInput = new FakeLiveSiteResponse(HttpStatusCode.NotAcceptable); testInput.ThrowExceptionOnUnsuccessfulStatus(); //Expect exception }
public void ThrowExceptionOnUnsuccessfulStatus_WhenUnsuccessfulAndNotFound_ThrowNotFoundException() { var testInput = new FakeLiveSiteResponse(HttpStatusCode.NotFound); testInput.ThrowExceptionOnUnsuccessfulStatus(); //Expect exception }
public void ThrowExceptionOnUnsuccessfulStatus_WhenUnsuccessfulAndConflict_ThrowConflictException() { var testInput = new FakeLiveSiteResponse(HttpStatusCode.Conflict); testInput.ThrowExceptionOnUnsuccessfulStatus(); //Expect exception }
public void ThrowExceptionOnUnsuccessfulStatus_WhenUnsuccessfulAndUnauthorized_ThrowUnauthorizedException() { var testInput = new FakeLiveSiteResponse(HttpStatusCode.Unauthorized); testInput.ThrowExceptionOnUnsuccessfulStatus(); //Expect exception }
public void ThrowExceptionOnUnsuccessfulStatus_WhenResponseIsSuccessful_DoesNotThrowException() { var testInput = new FakeLiveSiteResponse(HttpStatusCode.Accepted, true); testInput.ThrowExceptionOnUnsuccessfulStatus(); //No exception }