public void Minimum_Percentage_Not_Exceeded() { List <Plane> planes = new List <Plane>(); planes.Add(new Plane { Id = 123, Name = "Golden C3P-O", NumberOfSeats = 6 }); planes.Add(new Plane { Id = 124, Name = "Stormtrooper FN-11", NumberOfSeats = 8 }); var madridToPrague = new FlightRoute("Madrid", "Prague") { BaseCost = 80, BasePrice = 150, LoyaltyPointsGained = 10, MinimumTakeOffPercentage = 0.5 }; var scheduledFlight = new ScheduledFlight(madridToPrague); scheduledFlight.SetAircraftForRoute(planes[0]); scheduledFlight.Passengers.Add(new Passenger { Type = PassengerType.General, Name = "George", Age = 23, AllowedBags = 1 }); scheduledFlight.Passengers.Add(new Passenger { Type = PassengerType.General, Name = "Steph", Age = 25, AllowedBags = 1 }); var seatsTaken = scheduledFlight.Passengers.Count(); Assert.False(scheduledFlight.CheckMinPercentageExceeded(seatsTaken)); }