public void UniversityRule_IsSatisfied__When_Ratio_Universities_Per_Schools_Is_Less_Than_1_To_5() { IRoad road = _settlement.Roads.First(); var schools = new List <School>(5) { new School() { Position = new Point(50, 51) }, new School() { Position = new Point(55, 51) }, new School() { Position = new Point(60, 51) }, new School() { Position = new Point(65, 51) }, new School() { Position = new Point(70, 51) } }; schools.ForEach(s => { s.Road = road; _settlement.AddBuildingToRoad(road, s); }); var university = new University() { Position = new Point(50, 49) }; Assert.AreEqual(15, university.CalculateFitness(new BuildingRule() { BuildingRoad = road, Fields = _settlement.Fields, Roads = _settlement.Roads, SettlementCenter = _settlement.SettlementCenter })); }