Exemplo n.º 1
0
 public void SetVisibilityOfCatalog(bool isVisible)
 {
     isCatalogOpen = isVisible;
     view.SetVisibilityOfCatalog(isCatalogOpen);
     if (isVisible)
     {
         OnCatalogOpen?.Invoke();
     }
 }
Exemplo n.º 2
0
        public void SetVisibilityOfCatalogCorrectly(bool isVisible)
        {
            // Act
            buildModeHUDView.SetVisibilityOfCatalog(isVisible);

            // Assert
            if (isVisible)
            {
                testControllers.sceneCatalogController.Received(1).OpenCatalog();
            }
            else
            {
                testControllers.sceneCatalogController.Received(1).CloseCatalog();
            }
        }