Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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);
        }