예제 #1
0
        public void GetPhoneValidators_WhenCalled_ShouldReturnFalse()
        {
            var phone = new Phone();
            IEnumerable <PhoneValidator> validators = ValidatorWithUsing.GetPhoneValidators();

            Assert.False(IsPhoneValid(validators, phone));
        }
예제 #2
0
        public void GetPhoneValidators_WhenCalled_ShouldReturnTrue()
        {
            var phone = new Phone {
                Manufacturer = "Samsung", Model = "Galaxy S10"
            };
            IEnumerable <PhoneValidator> validators = ValidatorWithUsing.GetPhoneValidators();

            Assert.True(IsPhoneValid(validators, phone));
        }