Example #1
0
        public void HerbivoresBreedAndAddNewHerbivore()
        {
            toAdd.Clear();
            Position  herbivore1Position = new Position(1, 1);
            Position  herbivore2Position = new Position(2, 1);
            Herbivore herbivore1         = new Herbivore(herbivore1Position, BeginTerrarium);
            Herbivore herbivore2         = new Herbivore(herbivore2Position, BeginTerrarium);

            herbivore1.Breed(toAdd);
            Assert.AreEqual(1, toAdd.Count); // test of nieuwe herbivoor is aangemaakt
        }