public void HerbivoreKilledTest() { var rng = new Random(); var testHerb = new Herbivore(rng); Assert.True(testHerb.IsAlive); testHerb.Kill(); Assert.False(testHerb.IsAlive); }
public void HerbivoreAlreadyDeadTest() { // Check if IsAlive is set properly, or if it flips var rng = new Random(); var testHerb = new Herbivore(rng); testHerb.IsAlive = false; testHerb.Kill(); Assert.False(testHerb.IsAlive); }