예제 #1
0
        public void CheckCreateFleepZeroShip()
        {
            ShipsFactory shipsFactory = new ShipsFactory();
            FleetConfig  fleetConfig  = new FleetConfig();
            List <Ship>  shipsList;

            shipsList = shipsFactory.GetFleet(fleetConfig);
            Assert.AreEqual(0, shipsList.Count);
        }
예제 #2
0
        public void CheckCreateNineShipsToFleepShip()
        {
            ShipsFactory shipsFactory = new ShipsFactory();
            FleetConfig  fleetConfig  = new FleetConfig();
            List <Ship>  shipsList;

            fleetConfig.OneMastShipCount   = 4;
            fleetConfig.TwoMastShipCount   = 3;
            fleetConfig.ThreeMastShipCount = 2;
            shipsList = shipsFactory.GetFleet(fleetConfig);
            Assert.AreEqual(9, shipsList.Count);
        }