private Board CreateBoardDouble() { var boardDouble = A.Fake <Board>(); A.CallTo(() => _boardInitializerDouble.Initialize()).Returns(boardDouble); return(boardDouble); }
public void Start() { var board = _boardInitializer.Initialize(); ShowGameStartMessage(); while (!board.IsConquered) { var coordinates = GetCoordinates(); var shotResult = board.Check(coordinates); _consoleWrapper.Clear(); ShowShotResult(shotResult); ShowBoard(board); } ShowGameOverMessage(); }
public void ShouldReturnBoard() { _subject.Initialize().Should().BeOfType <Board>(); }