public void VerifyThatConvertMarkdownFilePathToHtmlFilePathWorks()
        {
            var pathHtml          = Path.Combine(this.RootAppData, "DocuPanel", "Test.html");
            var convertedPathHtml = markdownToHtml.ConvertMarkdownFilePathToHtmlFilePath(this.PathMarkdownTestFile);

            Assert.AreEqual(pathHtml, convertedPathHtml);
        }
Exemplo 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));
        }