public async Task GetReadmeMarkdown_WhenMissing_ReturnsNull() { var provider = new GitHubProvider(); var content = await provider.GetReadmeMarkdown(Guid.NewGuid().ToString()); Assert.IsNull(content); }
public async Task GetReadmeMarkdown_WhenHasRelativeUrl_InflatesUrl() { var provider = new GitHubProvider(); var content = await provider.GetReadmeMarkdown("vscode-copyrawvalue"); Assert.NotNull(content); Assert.IsTrue(content.Contains(@"https://raw.githubusercontent.com/WereDev/vscode-copyrawvalue/master/resources/demo.gif?raw=true")); }
public async Task GetReadmeMarkdown_WhenAvailable_ReturnsDecodedString() { var provider = new GitHubProvider(); var content = await provider.GetReadmeMarkdown("Wu10Man"); Assert.NotNull(content); Assert.IsTrue(content.Contains('*')); }