public void ProcessMarkdownResultWithEncodedUrlShouldSucceed() { var markdownResult = new MarkupResult { Html = @"<p><a href=""%7E/docs/csharp/language-reference/keywords/select-clause.md""></p>" }; markdownResult = MarkupUtility.Parse(markdownResult, "docs/framework/data/wcf/how-to-project-query-results-wcf-data-services.md", ImmutableDictionary.Create <string, FileAndType>()); Assert.Equal("~/docs/csharp/language-reference/keywords/select-clause.md", markdownResult.LinkToFiles.First()); }
public void ProcessMarkdownResultWithEncodedUrlShouldSucceed(string htmlContent, string expectedFileLink) { var markdownResult = new MarkupResult { Html = htmlContent }; markdownResult = MarkupUtility.Parse(markdownResult, "docs/framework/data/wcf/how-to-project-query-results-wcf-data-services.md", ImmutableDictionary.Create <string, FileAndType>()); Assert.Equal(expectedFileLink, markdownResult.LinkToFiles.First()); }