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

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

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

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

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