public void GetItemDriverTest() { var tree = new WPFTreeView <ItemControlDriver>(_ctrl._tree); WPFTreeViewItem item0 = new WPFTreeViewItem(_ctrl._item0); item0.EmulateChangeSelected(true); Assert.AreEqual("item0", tree.GetItemDriver("item0").Text.Text); }
public void EmulteChangeSelectedAsyncTest() { WPFTreeViewItem item = new WPFTreeViewItem(_ctrl._item1); Async async = new Async(); WindowControl windowControl = WindowControl.FromZTop(_app); item.EmulateChangeSelected(true, async); new NativeMessageBox(windowControl.WaitForNextModal()).EmulateButtonClick("OK"); async.WaitForCompletion(); }
public void EmulteChangeSelectedAsyncTest() { WPFTreeViewItem item = new WPFTreeViewItem(_ctrl._item1); Async async = new Async(); WindowControl windowControl = WindowControl.FromZTop(_app); item.EmulateChangeSelected(true, async); new NativeMessageBox(windowControl.WaitForNextModal()).EmulateButtonClick("OK"); async.WaitForCompletion(); }
public void SelectedTest() { WPFTreeViewItem item0 = new WPFTreeViewItem(_ctrl._item0); item0.EmulateChangeSelected(true); Assert.IsTrue(item0.IsSelected); WPFTreeViewItem item0_0 = new WPFTreeViewItem(_ctrl._item0_0); item0_0.EmulateChangeSelected(true); Assert.IsFalse(item0.IsSelected); Assert.IsTrue(item0_0.IsSelected); }
public void SelectedTest() { WPFTreeViewItem item0 = new WPFTreeViewItem(_ctrl._item0); item0.EmulateChangeSelected(true); Assert.IsTrue(item0.IsSelected); WPFTreeViewItem item0_0 = new WPFTreeViewItem(_ctrl._item0_0); item0_0.EmulateChangeSelected(true); Assert.IsFalse(item0.IsSelected); Assert.IsTrue(item0_0.IsSelected); }