public void FemalesAboveAge_6_ShouldNotBeBreedingEligible(int toAge) { var curve = new MortalityCurve(); var person = new Person(new List<IGene>(), true); for (int i = 0; i < toAge; i++) { person.AgePerson(curve); } Assert.AreEqual(false, person.EligibleForBreeding); }
public void IfPersonIsPregnant_ShouldNotBeEligibleToBreed() { var curve = new MortalityCurve(); var person = new Person(new List<IGene>(), true); for (int i = 0; i < 3; i++) { person.AgePerson(curve); } person.GetPregnant(); // make the person actually preggers person.AgePerson(curve); Assert.AreEqual(false, person.EligibleForBreeding); }
public void IfPregnant_ShouldNotBeBreedingEligible() { var curve = new MortalityCurve(); var person = new Person(new List<IGene>(), true); for (int i = 0; i < 5; i++) { person.AgePerson(curve); } person.GetPregnant(); Assert.AreEqual(false, person.EligibleForBreeding); }
public void PeopleShouldNotBeBreedingEligibleBelow2(int toAge, bool isFemale) { var curve = new MortalityCurve(); var person = new Person(new List<IGene>(), isFemale); for (int i = 0; i < toAge; i++) { person.AgePerson(curve); } Assert.AreEqual(false, person.EligibleForBreeding); }
public void PeopleAboveAge2ShouldBeEligibleToBreed(int toAge, bool isFemale) { var curve = new MortalityCurve(); var person = new Person(new List<IGene>(), isFemale); for (int i = 0; i < toAge; i++) { person.AgePerson(curve); } Assert.AreEqual(true, person.EligibleForBreeding); }