示例#1
0
        public void That_GetIsValid_ReturnsFalseFor21()
        {
            // given a validator
            IVelocityValidator target = new VelocityValidator();

            // when I enter 21
            bool actual = target.GetIsValid(velocity: 21M);

            // assert - returns false
            Assert.IsFalse(actual);
        }
示例#2
0
        public void That_GetIsValid_ReturnsTrueFor20()
        {
            // given a validator
            IVelocityValidator target = new VelocityValidator();

            // when I enter 20
            bool actual = target.GetIsValid(velocity: 20M);

            // assert - returns true
            Assert.IsTrue(actual);
        }