public void CanHandle_WhenParametersNull_ExpectException() { // Arrange // Act var target = new GuassianJsonRequestBuilder(); target.CanHandle(null); // Assert }
public void CanHandle_WhenParametersMethodTypeIsGuassian_ShouldReturnTrue() { // Arrange Mock<IParameters> parameters = new Mock<IParameters>(); parameters.Setup(m => m.MethodType).Returns(MethodType.Gaussian); // Act var target = new GuassianJsonRequestBuilder(); var actual = target.CanHandle(parameters.Object); // Assert actual.Should().Be.True(); }