public void VerifyThatCreateAbsolutePathFileWorks()
        {
            var relativePathMarkdown = "Test.md";
            var absolutePath         = markdownToHtml.CreateAbsolutePathFile(this.PathDocumentationIndex, relativePathMarkdown);

            Assert.AreEqual(absolutePath, this.PathMarkdownTestFile);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Reacts to the change in selected node.
        /// </summary>
        private void ReactOnSelectionChange()
        {
            if (this.SelectedSection?.PagePath == null)
            {
                return;
            }

            var pathFile = markdownToHtml.CreateAbsolutePathFile(this.pathDocumentationIndex, SelectedSection.PagePath);

            if (!markdownToHtml.IsFileAlreadyExistsInHtml(pathFile))
            {
                markdownToHtml.TransformToHtml(pathFile);
            }

            this.WebBrowser.Load(markdownToHtml.ConvertMarkdownFilePathToHtmlFilePath(pathFile));
        }