Example #1
0
        public void Test3()
        {
            var dogsName  = "bo";
            var dogsBreed = "husky";

            var validator = new DogValidator(dogsName, dogsBreed);
            var errors    = validator.Validate();

            Assert.Contains("huskys name must be longer", errors);
        }
Example #2
0
        public void Test2()
        {
            var dogsName  = "bob";
            var dogsBreed = "husky";

            var validator = new DogValidator(dogsName, dogsBreed);
            var errors    = validator.Validate();

            Assert.Empty(errors);
        }