public void CanMove_AndThen_Activate_Correct_SmartPart()
        {
            var tabWorkspace = new XtraTabWorkspace();
            var smartPart1   = new TestableSmartPart {
                Name = "smartpart1"
            };
            var smartPart2 = new TestableSmartPart {
                Name = "smartpart2"
            };
            var smartPart3 = new TestableSmartPart {
                Name = "smartpart3"
            };

            tabWorkspace.Show(smartPart1);
            tabWorkspace.Show(smartPart2);
            tabWorkspace.Show(smartPart3);

            tabWorkspace.TabPages.Count.ShouldEqual(3);
            tabWorkspace.ActiveSmartPart.ShouldBeSameAs(smartPart3);
        }
        public void CanShowAndClose_XtraTabWorkspace()
        {
            Font tahoma9ptFont = new Font("Tahoma", 9.75f);
            var  smartPartInfo = new XtraTabSmartPartInfo {
                Text = "text", PageHeaderFont = tahoma9ptFont
            };
            var xtraTabWorkspace = new XtraTabWorkspace();

            xtraTabWorkspace.Show(_smartPart, smartPartInfo);

            xtraTabWorkspace.TabPages.Count.ShouldEqual(1);
            xtraTabWorkspace.SmartParts.Count.ShouldEqual(1);
            xtraTabWorkspace.SelectedTabPage.Text.ShouldEqual("text");
            xtraTabWorkspace.SelectedTabPage.Appearance.Header.Font.ShouldEqual(tahoma9ptFont);

            xtraTabWorkspace.Close(_smartPart);
            xtraTabWorkspace.TabPages.Count.ShouldEqual(0);
            xtraTabWorkspace.SmartParts.Count.ShouldEqual(0);
        }