Esempio n. 1
0
        public void ShouldBeValidWhenSpecifiedAgeGroupIs0To2()
        {
            var validator = new ValidAgeRange();

            Assert.IsTrue(validator.IsValid("0-2 years"));
        }
Esempio n. 2
0
        public void ShouldBeInvalidWhenSpecifiedCountryIs1To3()
        {
            var validator = new ValidAgeRange();

            Assert.IsFalse(validator.IsValid("1-3 years"));
        }