Example #1
0
        public void zero_values_should_be_faillure()
        {
            var target = new IsNotZeroAttribute();
            var result = target.IsValid(0);

            result.Should().BeFalse();
        }
Example #2
0
        public void Non_zero_values_should_be_success()
        {
            var target = new IsNotZeroAttribute();
            var result = target.IsValid(15);

            result.Should().BeTrue();
        }