コード例 #1
0
        public void CanHandle_WhenParametersNull_ExpectException()
        {
            // Arrange

            // Act
            var target = new GuassianJsonRequestBuilder();
            target.CanHandle(null);

            // Assert
        }
コード例 #2
0
        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();
        }