public void ReturnFalse_ComparingWithDifferentDirectionsAndLengthAbove1()
        {
            var ship1 = new Cruiser(x: 1, y: 2, direction: Direction.Horizontal);
            var ship2 = new Cruiser(x: 1, y: 2, direction: Direction.Vertical);

            Assert.AreNotEqual(ship1, ship2);
        }
        public void ReturnFalse_ComparingWithDifferentLength()
        {
            var ship1 = new PatrolBoat(x: 1, y: 2);
            var ship2 = new Cruiser(x: 1, y: 2);

            Assert.AreNotEqual(ship1, ship2);
        }
Example #3
0
        public void CreateCruiser()
        {
            Cruiser cruiser = new Cruiser();

            cruiser.shipName = "Cruiser";
            cruiser.shipSize = 3;
            cruiser.isHit    = false;
            cruiser.isSunk   = false;
        }