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

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

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

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

            Assert.IsNotNull(oTony);
        }