Пример #1
0
 public void DataThrowsException(JSuccessResponse<int> response)
 {
     // Exercise system and verify outcome
     response.Invoking(r => { var x = r.Data; })
         .ShouldThrow<JSendRequestException>()
         .WithMessage(StringResources.SuccessResponseWithoutData);
 }
Пример #2
0
 public void DoesNotHaveData(JSuccessResponse<int> response)
 {
     // Exercise system and verify outcome
     response.HasData.Should().BeFalse();
 }
Пример #3
0
 public void StatusIsSuccess(JSuccessResponse<int> response)
 {
     // Exercise system and verify outcome
     response.Status.Should().Be(JSendStatus.Success);
 }
Пример #4
0
 public void ErrorIsNull(JSuccessResponse<int> response)
 {
     // Exercise system and verify outcome
     response.Error.Should().BeNull();
 }