public void DecimalRouteConstraintTests(object parameterValue, bool expected)
        {
            var constraint = new DecimalRouteConstraint();
            var actual     = TestValue(constraint, parameterValue);

            Assert.Equal(expected, actual);
        }
Beispiel #2
0
        public void DecimalRouteConstraint_ApplyConstraint(object parameterValue, bool expected)
        {
            // Arrange
            var constraint = new DecimalRouteConstraint();

            // Act
            var actual = ConstraintsTestHelper.TestConstraint(constraint, parameterValue);

            // Assert
            Assert.Equal(expected, actual);
        }
        public void DecimalRouteConstraint_ApplyConstraint(object parameterValue, bool expected)
        {
            // Arrange
            var constraint = new DecimalRouteConstraint();

            // Act
            var actual = ConstraintsTestHelper.TestConstraint(constraint, parameterValue);

            // Assert
            Assert.Equal(expected, actual);
        }