Exemple #1
0
        public void testEating()
        {
            Animal oDracula = new Bat(), oBarnSwallow = new BarnSwallow();

            Assert.AreEqual(oDracula.getEnergyMeans(), oBarnSwallow.getEnergyMeans());
        }
Exemple #2
0
        public void testBarnSwallowFlying()
        {
            Flyable oBarnSwallow = new BarnSwallow();

            Assert.IsTrue(oBarnSwallow.canFly());
        }
Exemple #3
0
        public void testBarnSwallow()
        {
            Animal oSwallow = new BarnSwallow();

            Assert.IsNotNull(oSwallow);
        }
 public void testEating()
 {
     Animal oDracula = new Bat(), oBarnSwallow = new BarnSwallow();
     Assert.AreEqual(oDracula.getEnergyMeans(), oBarnSwallow.getEnergyMeans());
 }
 public void testBarnSwallowFlying()
 {
     Flyable oBarnSwallow = new BarnSwallow();
     Assert.IsTrue(oBarnSwallow.canFly());
 }
 public void testBarnSwallow()
 {
     Animal oSwallow = new BarnSwallow();
     Assert.IsNotNull(oSwallow);
 }