public virtual void Test_Construction_WithControlFactory_ShouldSetControlFactory() { //---------------Set up test pack------------------- IControlFactory factory = CreateNewControlFactory(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- IMainTitleIconControl outlookStyleMenu = factory.CreateMainTitleIconControl(); //---------------Test Result ----------------------- Assert.AreSame(factory, outlookStyleMenu.ControlFactory); }
public virtual void TestSetTitle() { //---------------Set up test pack------------------- IMainTitleIconControl titleIconControl = GetControlFactory().CreateMainTitleIconControl(); //---------------Assert Precondition---------------- Assert.AreEqual(1, titleIconControl.Controls.Count); Assert.AreEqual(2, titleIconControl.Panel.Controls.Count); //---------------Execute Test ---------------------- titleIconControl.Title.Text = "Test"; //---------------Test Result ----------------------- Assert.AreEqual("Test", titleIconControl.Title.Text); }
protected virtual void AssertBackGroundimageIsTile(IMainTitleIconControl titleIconControl) { Assert.AreEqual (Gizmox.WebGUI.Forms.ImageLayout.Tile, ((PanelVWG)titleIconControl.Panel).BackgroundImageLayout); }
protected virtual void AssertBackGroundImagelayoutCentre(IMainTitleIconControl titleIconControl) { Assert.AreEqual (Gizmox.WebGUI.Forms.ImageLayout.Center, ((LabelVWG)titleIconControl.Icon).BackgroundImageLayout); }
protected virtual object GetBackGroundImage(IMainTitleIconControl titleIconControl) { return ((LabelVWG)titleIconControl.Icon).BackgroundImage; }
protected virtual void AssertBackGroundImageIsSet(IMainTitleIconControl titleIconControl, string headerImage) { Assert.AreEqual (headerImage, ((PanelVWG)titleIconControl.Panel).BackgroundImage.ToString()); }
protected void AssertBackGroundimageIsTile(IMainTitleIconControl titleIconControl) { Assert.AreEqual (System.Windows.Forms.ImageLayout.Tile, ((PanelWin)titleIconControl.Panel).BackgroundImageLayout); }
protected void AssertBackGroundImagelayoutCentre(IMainTitleIconControl titleIconControl) { Assert.AreEqual (System.Windows.Forms.ImageLayout.Center, ((LabelWin)titleIconControl.Icon).BackgroundImageLayout); }
protected object GetBackGroundImage(IMainTitleIconControl titleIconControl) { return(((LabelWin)titleIconControl.Icon).BackgroundImage); }
protected void AssertBackGroundImageIsSet(IMainTitleIconControl titleIconControl, string headerImage) { //TODO Brett 20 Apr 2009: Nubb to fix //Assert.AreEqual // (headerImage, ((PanelWin)titleIconControl.Panel).BackgroundImage.ToString()); }
protected virtual void AssertBackGroundimageIsTile(IMainTitleIconControl titleIconControl) { Assert.AreEqual (Gizmox.WebGUI.Forms.ImageLayout.Tile, ((PanelVWG)titleIconControl.Panel).BackgroundImageLayout); }
protected virtual void AssertBackGroundImagelayoutCentre(IMainTitleIconControl titleIconControl) { Assert.AreEqual (Gizmox.WebGUI.Forms.ImageLayout.Center, ((LabelVWG)titleIconControl.Icon).BackgroundImageLayout); }
protected virtual object GetBackGroundImage(IMainTitleIconControl titleIconControl) { return(((LabelVWG)titleIconControl.Icon).BackgroundImage); }
protected virtual void AssertBackGroundImageIsSet(IMainTitleIconControl titleIconControl, string headerImage) { Assert.AreEqual (headerImage, ((PanelVWG)titleIconControl.Panel).BackgroundImage.ToString()); }