Exemple #1
0
        public void testEnergy()
        {
            Animal oTony = new Tiger();

            Assert.AreEqual(oTony.getEnergyMeans(), "frosted flakes");
        }
Exemple #2
0
        public void testName()
        {
            Animal oTony = new Tiger();

            Assert.AreEqual(oTony.getName(), "Tony");
        }
Exemple #3
0
        public void testReproduction()
        {
            Animal oTony = new Tiger();

            Assert.AreEqual(oTony.getReproductionMethod(), "live birth");
        }
Exemple #4
0
        public void createTiger()
        {
            Animal oTony = new Tiger();

            Assert.IsNotNull(oTony);
        }