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(); }
public void SetupTest() { PersonDb.Reset(); mainForm = new MainForm(); mainForm.Size = new Size(); mainForm.Show(); this.olv = GetObjectListView(); }
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(); }
public void TestSetup() { PersonDb.Reset(); }
public void TestTearDown() { PersonDb.Reset(); mainForm.Close(); }
public void TestTearDown() { this.olv.UseNotifyPropertyChanged = false; PersonDb.Reset(); }