public void ShowBrowse_Invoke_SetsOrResetsVisibility()
        {
            // Arrange
            using (ShimsContext.Create())
            {
                Shimgallery.AllInstances.loadBrowseTable = gallery => { };

                using (var testObject = new gallery())
                {
                    InitControls(testObject);

                    // Act
                    testObject.showBrowse(null, new CommandEventArgs(null, DeleteImage));

                    // Assert
                    testObject.ShouldSatisfyAllConditions(
                        () => _tabPreview?.Visible.ShouldBeFalse(),
                        () => _tabUpload?.Visible.ShouldBeTrue(),
                        () => _tabBrowse?.Visible.ShouldBeTrue(),
                        () => _panelBrowse?.Visible.ShouldBeTrue(),
                        () => _panelPreview?.Visible.ShouldBeFalse(),
                        () => _panelUpload?.Visible.ShouldBeFalse(),
                        () => _panelBrowseOther?.Visible.ShouldBeFalse());
                }
            }
        }
        public void ShowBrowse_Invoke_SetsOrResetsVisibility()
        {
            // Arrange
            using (var testObject = new gallery())
            {
                InitControls(testObject);

                // Act
                testObject.showBrowse(null, new CommandEventArgs(null, DeleteImage));

                // Assert
                testObject.ShouldSatisfyAllConditions(
                    () => _tabPreview?.Visible.ShouldBeFalse(),
                    () => _tabUpload?.Visible.ShouldBeTrue(),
                    () => _tabBrowse?.Visible.ShouldBeTrue(),
                    () => _panelBrowse?.Visible.ShouldBeTrue(),
                    () => _panelPreview?.Visible.ShouldBeFalse(),
                    () => _panelUpload?.Visible.ShouldBeFalse(),
                    () => _showPreviewPanel?.Visible.ShouldBeFalse(),
                    () => _panelFolders?.Visible.ShouldBeFalse());
            }
        }