Exemple #1
0
        public void IsShipAlive_When_OneMastIsDestroyed_Then_ResponseIsTrue()
        {
            IBattleField battlefield = new Battlefield(10);
            Battleship   battleship  = new Battleship(5);

            battleship.TryLoadBattleshipToTheBattlefield(battlefield, 2, 2, Direction.Rigth);

            battleship.DestroyMast(2, 2);

            bool expectedResponse = true;
            bool actualResponse   = battleship.IsTheShipAlive();

            Assert.AreEqual(expectedResponse, actualResponse);
        }