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