public void SetUp() { _gameBuilder = MockRepository.GenerateMock <IGameBuilder>(); _gameStateProcessor = MockRepository.GenerateMock <IGameStateProcessor>(); _inputManager = MockRepository.GenerateMock <IInputManager>(); _displayManager = MockRepository.GenerateMock <IDisplayManager>(); _testGameState = MockRepository.GenerateStub <IGameState>(); _gameBuilder.Stub(x => x.Build( Arg <int> .Is.Anything, Arg <int> .Is.Anything, Arg <int> .Is.Anything, Arg <int> .Is.Anything)).Return(_testGameState); _game = new MinefieldGame(_gameBuilder, _gameStateProcessor, _inputManager, _displayManager); }