예제 #1
0
        private void CreateHeaderSection()
        {
            var htmlHeaderProcessor = new HtmlHeaderProcessor(_htmlFileContent);
            var title         = htmlHeaderProcessor.TitleOfControl();
            var namespaceInfo = htmlHeaderProcessor.FetchNamespaceInfo();
            var assemblyInfo  = htmlHeaderProcessor.FetchAssemblyInfo();

            _wordGenerator.CreateTextSection(title, 1, 10, 20, WdColor.wdColorDarkBlue);
            _wordGenerator.CreateTextSection(namespaceInfo, 1, 0, 13);
            _wordGenerator.CreateTextSection(assemblyInfo, 1, 25, 13);
        }
        public void FetchAssmeblyInformation()
        {
            const string htmlText =
                @"><br />
            <b>Assembly:</b>
               <span sdata=""assembly"">ATT.Controls</span> (in ATT.Controls.dll)<div class=""LW_" +
            @"CollapsibleArea_Container""><div class=""LW_CollapsibleArea_TitleDiv"">" +
            @"<h2 class=""LW_CollapsibleArea_Title"">Syntax</h2><";

            var htmlProcessor = new HtmlHeaderProcessor(htmlText);
            var assemblyInfo = htmlProcessor.FetchAssemblyInfo();

            Assert.AreEqual("Assembly: ATT.Controls (in ATT.Controls.dll)", assemblyInfo);
        }
        public void FetchAssmeblyInformation()
        {
            const string htmlText =
                @"><br />
    <b>Assembly:</b>
   <span sdata=""assembly"">ATT.Controls</span> (in ATT.Controls.dll)<div class=""LW_" +
                @"CollapsibleArea_Container""><div class=""LW_CollapsibleArea_TitleDiv"">" +
                @"<h2 class=""LW_CollapsibleArea_Title"">Syntax</h2><";

            var htmlProcessor = new HtmlHeaderProcessor(htmlText);
            var assemblyInfo  = htmlProcessor.FetchAssemblyInfo();

            Assert.AreEqual("Assembly: ATT.Controls (in ATT.Controls.dll)", assemblyInfo);
        }