This control is the Title Control that is is present at the top of the right hand panel This control is used to provide context for the Business Object being shown in the Panel.
상속: UserControlVWG, IMainTitleIconControl
        public virtual void Test_CreateMainTitleIconControl()
        {
            //---------------Set up test pack-------------------
            IControlFactory factory = GetControlFactory();
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            MainTitleIconControlVWG titleIconControl = new MainTitleIconControlVWG(factory);
            //---------------Test Result -----------------------

            Assert.AreEqual(1, titleIconControl.Controls.Count);
            Assert.AreEqual(DockStyle.Top, DockStyleVWG.GetDockStyle(titleIconControl.Dock));

            Assert.IsInstanceOf(typeof(IPanel), titleIconControl.Panel);
            const string headerImage = "Images.headergradient.png";
            AssertBackGroundImageIsSet(titleIconControl, headerImage);
            AssertBackGroundimageIsTile(titleIconControl);
            Assert.AreEqual(Color.Transparent, titleIconControl.Panel.BackColor);
            Assert.AreEqual(DockStyle.Top, titleIconControl.Panel.Dock);
            Assert.AreEqual(23, titleIconControl.Panel.Height);
            Assert.AreEqual(2, titleIconControl.Panel.Controls.Count);

            Assert.IsInstanceOf(typeof(ILabel), titleIconControl.Icon);
            Assert.IsNull(GetBackGroundImage(titleIconControl));
            Assert.AreEqual(Color.Transparent, titleIconControl.Icon.BackColor);
            AssertBackGroundImagelayoutCentre(titleIconControl);
            Assert.AreEqual(DockStyle.Left, titleIconControl.Icon.Dock);


            Assert.IsInstanceOf(typeof(ILabel), titleIconControl.Title);
            Assert.IsEmpty("", titleIconControl.Title.Text);
            Assert.AreEqual(DockStyle.Fill, titleIconControl.Title.Dock);
            Assert.AreEqual(Color.Transparent, titleIconControl.Title.BackColor);
            Assert.AreEqual(ContentAlignment.MiddleLeft, titleIconControl.Title.TextAlign);
        }
 public virtual void TestRemoveIcon()
 {
     //---------------Set up test pack-------------------
     MainTitleIconControlVWG titleIconControl = new MainTitleIconControlVWG(GetControlFactory());
     //---------------Assert Precondition----------------
     Assert.AreEqual(1, titleIconControl.Controls.Count);
     Assert.AreEqual(2, titleIconControl.Panel.Controls.Count);
     //---------------Execute Test ----------------------
     titleIconControl.RemoveIconImage();
     //---------------Test Result -----------------------
     Assert.IsNull(((LabelVWG)titleIconControl.Icon).BackgroundImage);
 }
 public virtual void TestSetInvalidIcon()
 {
     //---------------Set up test pack-------------------
     MainTitleIconControlVWG titleIconControl = new MainTitleIconControlVWG(GetControlFactory());
     //---------------Assert Precondition----------------
     Assert.AreEqual(1, titleIconControl.Controls.Count);
     Assert.AreEqual(2, titleIconControl.Panel.Controls.Count);
     //---------------Execute Test ----------------------
     titleIconControl.SetInvalidImage();
     //---------------Test Result -----------------------
     Assert.AreEqual("Images.Invalid.gif", ((LabelVWG)titleIconControl.Icon).BackgroundImage.ToString());
 }