public void PenTesting() { Pen pen = new Pen("MY FARM"); DatabaseManager manager = new DatabaseManager(); EventManager eManager = new EventManager(); AnimalManager aManager = new AnimalManager(); CDChicken cdChicken = new CDChicken(); //Assert.AreEqual(3, pen.GetAnimals().Count); pen.KillAllAnimals(); eManager.DeleteAllEvents(manager); pen.AddChicken(); pen.AddChicken(); pen.AddCow(); pen.AddCow(); pen.AddPig(); pen.AddPig(); //pen.RemoveAnimal(pen.GetAnimal(0)); //Assert.AreEqual(5, pen.GetAnimals().Count); //aManager.DeleteAnimals(cdChicken, manager); //eManager.DeleteAllEvents(manager); //Assert.IsTrue(pen.Copulate(pen.GetAnimal(3), pen.GetAnimal(5))); Assert.IsFalse(pen.Copulate(pen.GetAnimal(0), pen.GetAnimal(5))); Assert.IsTrue(pen.Copulate(pen.GetAnimal(0), pen.GetAnimal(1))); }
public void AddCow() { _Pen.AddCow(); }