예제 #1
0
        public void GetShipTest()
        {
            BattleArea battleArea = new BattleArea();

            IShip ship = new Ship(1, 1, ShipType.TypeP);

            ship.AcquiredCoordinates.Add(new CoOrdinates('1', 'A'));
            battleArea.AllShips.Add(ship);

            IShip ship1 = battleArea.GetShip(new CoOrdinates('1', 'A'));

            Assert.IsNotNull(ship1);
        }