public void CanParse_WhenBlobMethodType_ShouldReturnTrue() { // Arrange Mock<IParameters> parametersMock = new Mock<IParameters>(); parametersMock.Setup(m => m.MethodType).Returns(MethodType.Blob); // Act GenericResponseParser<string> target = new GenericResponseParser<string>(); var actual = target.CanParse(parametersMock.Object); // Assert actual.Should().Be.True(); }
public void CanHandle_WhenVerifySignatureMethodType_ShouldReturnFalse() { // Arrange Mock<IParameters> parametersMock = new Mock<IParameters>(); parametersMock.Setup(m => m.MethodType).Returns(MethodType.VerifySignature); // Act GenericResponseParser<int> target = new GenericResponseParser<int>(); var actual = target.CanParse(parametersMock.Object); // Assert actual.Should().Be.False(); }