public void RpcOnNewGameStarted_ShouldNotChangeCurrentView_WhenPlayerDoesntHaveAuthority()
        {
            // Given
            _networkBehaviourChecker
            .IsLocalPlayer(_playerController)
            .Returns(false);

            // When
            _playerController.RpcOnNewGameStarted();

            // Then
            _changeCurrentView
            .DidNotReceive()
            .Change(View.Defusing);
        }
Пример #2
0
        public void Update_ShouldNOTChangeToDefusingViewWhenCountdownHASNTReachZero()
        {
            // Given
            _countdownLayer.Start();

            // When
            _defusingTime.GetDeltaTime().Returns(0.5f);
            _countdownLayer.Update();

            // Then
            _changeCurrentView.DidNotReceive().Change(View.Defusing);
        }