Beispiel #1
0
        public void EnableLayers_ShouldEnableAllLayersCorrespondingToView()
        {
            // When
            _viewManager.EnableLayers(View.Home);

            // Then
            _aHomeViewLayer.Received().Enable();
            _anotherHomeViewLayer.Received().Enable();
            _aLobbyViewLayer.DidNotReceive().Enable();
        }
Beispiel #2
0
        public void DisableActiveLayers_ShouldNotDisableLayersAlreadyDisabled()
        {
            // Given
            _viewManager.EnableLayers(View.Home);
            _viewManager.DisableActiveLayers();

            _ClearReceivedCallsOnAllViewsDisable();

            // When
            _viewManager.DisableActiveLayers();

            // Then
            _aHomeViewLayer.DidNotReceive().Disable();
            _anotherHomeViewLayer.DidNotReceive().Disable();
            _aLobbyViewLayer.DidNotReceive().Disable();
        }