public void WhenObjectHasBrowsableProperties_ThenPropertiyIsShown()
        {
            var settings = new MockSettingsObject();

            var window = new SettingsEditorWindow(this.serviceProvider);

            window.ShowWindow(settings);
            PumpWindowMessages();

            var grid = window.GetChild <PropertyGrid>("propertyGrid");

            Assert.AreEqual(1, grid.SelectedGridItem.Parent.GridItems.Count);
        }
        public void WhenObjectHasNoBrowsableProperties_ThenNoPropertiesShown()
        {
            var settings = new EmptyMockSettingsObject();

            var window = new SettingsEditorWindow(this.serviceProvider);

            window.ShowWindow(settings);
            PumpWindowMessages();

            var grid = window.GetChild <PropertyGrid>("propertyGrid");

            Assert.IsNull(grid.SelectedGridItem.Parent);
        }