Exemplo n.º 1
0
        public void BearEats()
        {
            Bear   bear  = new Bear();
            string honey = bear.Eat();

            Assert.Equal("Honey comb please!", honey);
        }
Exemplo n.º 2
0
        public void Bear_Eats_Other()
        {
            Bear eater = new Bear();
            OtherEdibleCritters food = new OtherEdibleCritters();

            Assert.True(eater.Eat(food));
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Animal animal = new Animal();
            Bear   bear   = new Bear();

            animal.Eat();
            bear.Eat();
        }