Пример #1
0
 public void TestTreeSelectedRowsEmpty()
 {
     Tree tree = new Tree("tree");
     Assert.AreEqual(0, tree.SelectedRows().Count);
 }
Пример #2
0
 public void TestTreeSelectRows()
 {
     Tree tree = new Tree("tree").AddRows(1, 2, 3);
     Assert.AreEqual(3, tree.SelectedRows().Count);
     Assert.AreEqual(1, tree.SelectedRows()[0]);
     Assert.AreEqual(2, tree.SelectedRows()[1]);
     Assert.AreEqual(3, tree.SelectedRows()[2]);
 }
Пример #3
0
 public void TestTreeRemoveRows()
 {
     Tree tree = new Tree("tree").AddRows(1, 2, 3, 4, 5, 6, 7, 8, 9);
     Assert.AreEqual(tree, tree.RemoveRows(2,4,6,8));
     Assert.AreEqual(5, tree.SelectedRows().Count);
 }