public void RunGame_WhenGameIsRunning_CallsGameBuilder() { // Always go left _inputManager.Stub(x => x.GetDirection()).Return(PlayerDirection.Right); _inputManager.Stub(x => x.GetYesNoResponse()).Return(false); // have to ensure a win or loss or it will run infinitely _testGameState.Stub(x => x.HasLost()).Return(true); _game.RunGame(); // Check _gameBuilder.AssertWasCalled(x => x.Build(Arg <int> .Is.Anything, Arg <int> .Is.Anything, Arg <int> .Is.Anything, Arg <int> .Is.Anything)); }