public void GetsTheTitleOfTheControl()
        {
            const string htmlText = @"<meta name=""save"" content=""history"" />
    <title>MMSControl Class</title>";

            var htmlProcessor = new HtmlHeaderProcessor(htmlText);
            var title         = htmlProcessor.TitleOfControl();

            Assert.AreEqual("MMSControl Class", title);
        }
        public void GetsTheTitleOfTheControl()
        {
            const string htmlText = @"<meta name=""save"" content=""history"" />
            <title>MMSControl Class</title>";

            var htmlProcessor = new HtmlHeaderProcessor(htmlText);
            var title = htmlProcessor.TitleOfControl();

            Assert.AreEqual("MMSControl Class", title);
        }
Exemplo n.º 3
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);
        }