public void ColonizerGetColonists_ParamIsLowerThanColonistsOnShip_GetColonists() { ShipsFactory ships = new ShipsFactory(new Resources(double.MaxValue, double.MaxValue, double.MaxValue)); Colonizer colonizer = ships.GetColonizer(); double colonize = colonizer.GetColonists(colonizer.ColonistsOnShip / 4); Assert.True(colonize == (Colonizer.Colonists / 4)); }
public void ColonizerGetColonists_ParamIsGreaterThanColonistsOnShip_GetColonists() { ShipsFactory ships = new ShipsFactory(new Resources(double.MaxValue, double.MaxValue, double.MaxValue)); Colonizer colonizer = ships.GetColonizer(); double colonize = colonizer.GetColonists(colonizer.ColonistsOnShip * 4); Assert.Zero(colonize); }