Exemplo n.º 1
0
        public void TestLogicalTreeExtensionsForIAppVarOwner()
        {
            AppVar button1 = new MyAppVar()
            {
                AppVar = _ctrl
            }.LogicalTree().ByBinding("Button1Command").Single();

            Assert.AreEqual(button1, _ctrl._button1);
            Assert.AreEqual(0, new WPFListView(_ctrl._listView).LogicalTree().ByType <ListViewItem>().Count);
        }
 public void TestLogicalTreeExtensionsForIAppVarOwner()
 {
     AppVar button1 = new MyAppVar() { AppVar = _ctrl }.LogicalTree().ByBinding("Button1Command").Single();
     Assert.AreEqual(button1, _ctrl._button1);
     Assert.AreEqual(0, new WPFListView(_ctrl._listView).LogicalTree().ByType<ListViewItem>().Count);
 }