public void ParseXMLTestStyles()
        {
            // Arrange
            XElement dispCol = XElement.Parse(@"<C1DisplayColumn>" +
                                              @"<HeadingStyle parent=""Style2"" me=""Style15""/>" +
                                              @"<ColumnSelectorStyle parent=""Style14"" me=""Style16""/>" +
                                              @"<Style parent=""Style1"" me=""Style17""/>" +
                                              @"<FooterStyle parent=""Style3"" me=""Style18""/>" +
                                              @"<EditorStyle parent=""Style5"" me=""Style19""/>" +
                                              @"<GroupHeaderStyle parent=""Style1"" me=""Style21""/>" +
                                              @"<GroupFooterStyle parent=""Style1"" me=""Style20""/>" +
                                              @"<Visible>True</Visible>" +
                                              @"<ColumnDivider>Green,Raised</ColumnDivider>" +
                                              @"<Width>104</Width>" +
                                              @"<Height>15</Height>" +
                                              @"<ButtonText>True</ButtonText>" +
                                              @"<DCIdx>2</DCIdx>" +
                                              @"</C1DisplayColumn>");
            // Act
            C1DisplayColumn displayColumn = C1DisplayColumn.ParseXML(dispCol);
            bool            actualResult  = displayColumn.Styles["HeadingStyle"].Parent == "Style2" && displayColumn.Styles["HeadingStyle"].Name == "Style15" &&
                                            displayColumn.Styles["ColumnSelectorStyle"].Parent == "Style14" && displayColumn.Styles["ColumnSelectorStyle"].Name == "Style16" &&
                                            displayColumn.Styles["Style"].Parent == "Style1" && displayColumn.Styles["Style"].Name == "Style17" &&
                                            displayColumn.Styles["FooterStyle"].Parent == "Style3" && displayColumn.Styles["FooterStyle"].Name == "Style18" &&
                                            displayColumn.Styles["EditorStyle"].Parent == "Style5" && displayColumn.Styles["EditorStyle"].Name == "Style19" &&
                                            displayColumn.Styles["GroupHeaderStyle"].Parent == "Style1" && displayColumn.Styles["GroupHeaderStyle"].Name == "Style21" &&
                                            displayColumn.Styles["GroupFooterStyle"].Parent == "Style1" && displayColumn.Styles["GroupFooterStyle"].Name == "Style20";

            // Assert
            Assert.IsTrue(actualResult);
        }
        public void ParseXMLTestProperties()
        {
            // Arrange
            XElement dispCol = XElement.Parse(@"<C1DisplayColumn>" +
                                              @"<HeadingStyle parent=""Style2"" me=""Style15""/>" +
                                              @"<ColumnSelectorStyle parent=""Style14"" me=""Style16""/>" +
                                              @"<Style parent=""Style1"" me=""Style17""/>" +
                                              @"<FooterStyle parent=""Style3"" me=""Style18""/>" +
                                              @"<EditorStyle parent=""Style5"" me=""Style19""/>" +
                                              @"<GroupHeaderStyle parent=""Style1"" me=""Style21""/>" +
                                              @"<GroupFooterStyle parent=""Style1"" me=""Style20""/>" +
                                              @"<Visible>True</Visible>" +
                                              @"<ColumnDivider>Green,Raised</ColumnDivider>" +
                                              @"<Width>104</Width>" +
                                              @"<Height>15</Height>" +
                                              @"<ButtonText>True</ButtonText>" +
                                              @"<DCIdx>2</DCIdx>" +
                                              @"</C1DisplayColumn>");
            // Act
            C1DisplayColumn displayColumn = C1DisplayColumn.ParseXML(dispCol);
            bool            actualResult  = displayColumn.Properties["Width"] == "104" &&
                                            displayColumn.Properties["Height"] == "15" &&
                                            displayColumn.Properties["Visible"] == "True" &&
                                            displayColumn.Properties["ButtonText"] == "True" &&
                                            displayColumn.Properties["DCIdx"] == "2" &&
                                            displayColumn.ColumnDivider.ToXMLTagString() == "Green,Raised";

            // Assert
            Assert.IsTrue(actualResult);
        }