Exemplo n.º 1
0
        public ConsoleScreenRendererTests()
        {
            _gameboardMock  = new Mock <IGameBoard>();
            _playerMock     = new Mock <IPlayer>();
            _ConsoleWrapper = new InMemoryConsole();
            _renderer       = new ConsoleScreenRenderer(_ConsoleWrapper);

            SetupGameBoardMock();

            _playerMock.Setup(s => s.Moves).Returns(new List <Move>());
        }
Exemplo n.º 2
0
        public GameEngineTests()
        {
            _gameBoardMock  = new Mock <IGameBoard>();
            _rendererMock   = new Mock <IRenderer>();
            _consoleWrapper = new InMemoryConsole();
            _playerMock     = new Mock <IPlayer>();

            SetupPlayerMocks();
            SetupGameBoardMocks();
            _gameEngine = new GameEngine(_gameBoardMock.Object, _rendererMock.Object, _consoleWrapper, _playerMock.Object);
        }