public void Tch_AddPage() { ITabControlHostService host = new TabControlHost(services, tabCtrl); IWindowFrame frame = host.Add(pane, "Foo"); Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text); }
public void Tch_AddPage() { ITabControlHostService host = new TabControlHost(services, tabCtrl); host.Add(pane.Object, "Foo"); Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text); }
public void Tch_AttachToPage() { tabCtrl.TabPages.Add("Test"); Assert.AreEqual(1, tabCtrl.TabPages.Count); ITabControlHostService host = new TabControlHost(services, tabCtrl); IWindowFrame frame = host.Attach(pane, tabCtrl.TabPages[0]); frame.Title = "Foo"; Assert.AreEqual("Foo", tabCtrl.TabPages[0].Text); }