Ejemplo n.º 1
0
        public void InitEachTest()
        {
            PersonDb.Reset();

            mainForm      = new MainForm();
            mainForm.Size = new Size();
            mainForm.Show();
            this.olv = mainForm.treeListView1;

            this.olv.CanExpandGetter = delegate(Object x) {
                return(((Person)x).Children.Count > 0);
            };
            this.olv.ChildrenGetter = delegate(Object x) {
                return(((Person)x).Children);
            };
            // this is only used when HierarchicalCheckboxes is true
            this.olv.ParentGetter = delegate(object child) {
                return(((Person)child).Parent);
            };

            this.olv.UseFiltering           = false;
            this.olv.ModelFilter            = null;
            this.olv.HierarchicalCheckboxes = false;
            this.olv.Roots = PersonDb.All.GetRange(0, NumberOfRoots);
            this.olv.DiscardAllState();
        }
Ejemplo n.º 2
0
 public void SetupTest()
 {
     PersonDb.Reset();
     mainForm      = new MainForm();
     mainForm.Size = new Size();
     mainForm.Show();
     this.olv = GetObjectListView();
 }
Ejemplo n.º 3
0
        public void InitEachTest()
        {
            PersonDb.Reset();

            mainForm      = new MainForm();
            mainForm.Size = new Size();
            mainForm.Show();
            this.olv = mainForm.treeListView1;

            this.SetupDelegates();

            this.olv.UseFiltering           = false;
            this.olv.ModelFilter            = null;
            this.olv.HierarchicalCheckboxes = false;
            this.olv.Roots = PersonDb.All.GetRange(0, NumberOfRoots);
            this.olv.DiscardAllState();
        }
Ejemplo n.º 4
0
 public void TestSetup()
 {
     PersonDb.Reset();
 }
Ejemplo n.º 5
0
 public void TestTearDown()
 {
     PersonDb.Reset();
     mainForm.Close();
 }
Ejemplo n.º 6
0
 public void TestTearDown()
 {
     this.olv.UseNotifyPropertyChanged = false;
     PersonDb.Reset();
 }