Ejemplo n.º 1
0
        public void Should_return_false_when_pet_type_is_dog()
        {
            var catFinder = new CatFinder();
            var pet       = new Pet {
                Type = "Dog", Name = "Fido"
            };
            var result = catFinder.Find(pet);

            Assert.AreEqual(false, result);
        }
Ejemplo n.º 2
0
        public void Should_return_true_when_pet_type_is_cat_lowercase()
        {
            var catFinder = new CatFinder();
            var pet       = new Pet {
                Type = "cat", Name = "Garfield"
            };
            var result = catFinder.Find(pet);

            Assert.AreEqual(true, result);
        }