private string getGender(CivPopKerbal crew) { var gender = ProtoCrewMember.Gender.Male; if (crew.GetGender().Equals(CivPopKerbalGender.FEMALE)) { gender = ProtoCrewMember.Gender.Female; } return(gender.displayDescription()); }
public void create_no_couples_when_no_females() { for (int i = 0; i < 100; i++) { CivPopKerbal kerbal = builder.build(0); kerbal.SetVesselId(vessel.GetId()); if (CivPopKerbalGender.MALE.Equals(kerbal.GetGender())) { repo.Add(kerbal); } } IEnumerable <CivPopCouple> couples = service.makeCouples(0, vessel, repo); Assert.AreEqual(0, couples.Count()); }