public void EnsureSuccessStatus_Throws_WhenStatusIsNotSuccess(JErrorResponse <int> response)
 {
     // Exercise system and verify outcome
     response.Invoking(rsp => rsp.EnsureSuccessStatus())
     .ShouldThrow <JSendRequestException>()
     .WithMessage("JSend status does not indicate success: " + response + ".");
 }
 public void DataThrowsException(JErrorResponse<int> response)
 {
     // Exercise system and verify outcome
     response.Invoking(r => { var x = r.Data; })
         .ShouldThrow<JSendRequestException>()
         .WithMessage("JSend status does not indicate success: \"fail\".");
 }
 public void DataThrowsException(JErrorResponse <int> response)
 {
     // Exercise system and verify outcome
     response.Invoking(r => { var x = r.Data; })
     .ShouldThrow <JSendRequestException>()
     .WithMessage("JSend status does not indicate success*");
 }