public void BrowseForValue() { PropertyGridCategory propertyGridCategory = propertyGrid.Category("Input"); PropertyGridProperty property = propertyGridCategory.GetProperty("FileName"); property.BrowseForValue(); keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.ESCAPE); }
void BrowseForValue() { PropertyGridCategory propertyGridCategory = propertyGrid.Category("Input"); PropertyGridProperty property = propertyGridCategory.GetProperty("FileName"); property.BrowseForValue(); MainWindow.ModalWindow("Open File").Close(); }
public void CannotBrowseForValue() { PropertyGridProperty propertyWithoutBrowseButton = propertyGrid.Category("General").GetProperty("WindowSize"); propertyWithoutBrowseButton.BrowseForValue(); }
void CannotBrowseForValue() { PropertyGridProperty propertyWithoutBrowseButton = propertyGrid.Category("General").GetProperty("WindowSize"); Assert.Throws <WhiteException>(() => propertyWithoutBrowseButton.BrowseForValue()); }