예제 #1
0
        public void Herbivore_Can_Eat_Vegetable()
        {
            var myHerbivore = new MyHerbivore();

            myHerbivore.CanEat(new Carrot()).Should().BeTrue();
        }
예제 #2
0
        public void Herbivore_Cannot_Eat_Meat()
        {
            var myHerbivore = new MyHerbivore();

            myHerbivore.CanEat(new Pork()).Should().BeFalse();
        }
예제 #3
0
        public void Herbivore_Can_Eat_Fruit()
        {
            var myHerbivore = new MyHerbivore();

            myHerbivore.CanEat(new Banana()).Should().BeTrue();
        }