public void Handle_RegisterFriendChallenge()
        {
            var logLine = "[Bob] ---RegisterFriendChallenge---";

            _bobHandler.Handle(logLine, _gameState, _game);
            _gameHandler.AssertWasCalled(x => x.HandleInMenu());
        }
        public void Handle_DetectRank()
        {
            var logLine = "[Asset] CachedAsset.UnloadAssetObject() - unloading name=Medal_Ranked_11 family=Texture persistent=False";

            _assetHandler.Handle(logLine, _gameState, _game);
            _gameHandler.AssertWasCalled(x => x.SetRank(11));
        }
Пример #3
0
        public void Handle_StartSpectating()
        {
            var logLine = "[Power] ================== Begin Spectating 1st player ==================";

            _game.Stub(x => x.IsInMenu).Return(true);
            _powerHandler.Handle(logLine, _gameState, _game);
            _gameHandler.AssertWasCalled(x => x.SetGameMode(GameMode.Spectator));
            _gameState.AssertWasCalled(x => x.FoundSpectatorStart = false);
        }