コード例 #1
0
        public void DecreaseSurvivedShips_AfterKilling()
        {
            var row         = 4;
            var startColumn = 3;
            var length      = 3;

            foreach (var column in Enumerable.Range(startColumn, length))
            {
                field.Shoot(new CellPosition(row, column));
            }
            shipsCount[(ShipType)length]--;

            field.SurvivedShips.Should().BeEquivalentTo(shipsCount);
        }