예제 #1
0
        public void DeleteShipFromFieldTest_ValidShip()
        {
            Field field = new Field_Valid_OneShip();

            field.SetRandomShips();
            field.DeleteShipFromField(field.Ships[0].Id);
            foreach (var cell in field.Cells)
            {
                Assert.AreEqual(CellStatus.NotSet, cell);
            }
        }
예제 #2
0
        public void DeleteShipFromFieldTest_NotSetShip()
        {
            Field field = new Field_Valid_OneShip();

            field.DeleteShipFromField(field.Ships[0].Id);
        }
예제 #3
0
        public void DeleteShipFromFieldTest_InvalidShipId()
        {
            Field field = new Field_Valid_OneShip();

            field.DeleteShipFromField(field.Ships[0].Id + 1);
        }