Example #1
0
        public void BrowseForValue()
        {
            PropertyGridCategory propertyGridCategory = propertyGrid.Category("Input");
            PropertyGridProperty property             = propertyGridCategory.GetProperty("FileName");

            property.BrowseForValue();
            keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.ESCAPE);
        }
Example #2
0
        void BrowseForValue()
        {
            PropertyGridCategory propertyGridCategory = propertyGrid.Category("Input");
            PropertyGridProperty property             = propertyGridCategory.GetProperty("FileName");

            property.BrowseForValue();
            MainWindow.ModalWindow("Open File").Close();
        }
Example #3
0
        public void CannotBrowseForValue()
        {
            PropertyGridProperty propertyWithoutBrowseButton = propertyGrid.Category("General").GetProperty("WindowSize");

            propertyWithoutBrowseButton.BrowseForValue();
        }
Example #4
0
        void CannotBrowseForValue()
        {
            PropertyGridProperty propertyWithoutBrowseButton = propertyGrid.Category("General").GetProperty("WindowSize");

            Assert.Throws <WhiteException>(() => propertyWithoutBrowseButton.BrowseForValue());
        }