public void BattleShipOperation_CreateAndSink() { // Arrange var expected = 1; BattleshipBoard btl = new BattleshipBoard(); btl.BuildShips(ShipType.Battleship); for (int i = 1; i <= 10; i++) { for (char c = 'A'; c <= 'J'; c++) { var square = new Tuple <char, int>(c, i); if (btl.GetSquareFromComputerOcean(square).ShipType is ShipType.Battleship) { btl.SetRedSquareComputerOcean(square); } } } //act var actual = btl.GetComputerSinkShipCount(ShipType.Battleship); // Assert Assert.AreEqual(expected, actual); }