public void ExpandedTest() { WPFTreeViewItem item0 = new WPFTreeViewItem(_ctrl._item0); item0.EmulateChangeExpanded(true); Assert.IsTrue(item0.IsExpanded); }
public void EmulteChangeExpandedAsyncTest() { WPFTreeViewItem item = new WPFTreeViewItem(_ctrl._item1); Async async = new Async(); WindowControl windowControl = WindowControl.FromZTop(_app); item.EmulateChangeExpanded(true, async); new NativeMessageBox(windowControl.WaitForNextModal()).EmulateButtonClick("OK"); async.WaitForCompletion(); }