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

            Assert.AreEqual(oDracula.getEnergyMeans(), oBarnSwallow.getEnergyMeans());
        }
示例#2
0
        public void testDraculaFlying()
        {
            Flyable oDracula = new Bat();

            Assert.IsTrue(oDracula.canFly());
        }
示例#3
0
        public void testDracula()
        {
            Animal oDracula = new Bat();

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