public void Test()
        {
            var customerValidator = new CustomerValidator();
            var customer          = new Customer();

            customer.Address = new  Address {
                AddressLine1 = "pppppp"
            };
            customerValidator.ShouldHaveChildValidator(c => c.Address, typeof(AddressValidator));


            // Assert.AreEqual(, "Address can not be null");
        }
Example #2
0
 public void CustomerValidator_WhenAddressPostCodeIsNull_ShouldHaveChildValidator()
 {
     validator.ShouldHaveChildValidator(customer => customer.Address, typeof(AddressValidator));
 }