Beispiel #1
0
        public void GetCoordinatesTest()
        {
            Ship ship = new Ship(1, 1, ShipType.TypeP);
            List <CoOrdinates> coordinates = ship.AcquireCoordinates(new CoOrdinates('1', 'A'));
            bool areEqual = coordinates[0].Equals(ship.AcquiredCoordinates[0]);

            Assert.IsTrue(areEqual);
        }
Beispiel #2
0
        public void AcquireCoordinatesTest()
        {
            Ship ship = new Ship(1, 1, ShipType.TypeP);
            List <CoOrdinates> coordinates = ship.AcquireCoordinates(new CoOrdinates('1', 'A'));

            Assert.AreEqual(1, coordinates.Count);
            Assert.AreEqual(coordinates[0].X, '1');
            Assert.AreEqual(coordinates[0].Y, 'A');
        }