示例#1
0
        public async Task GetReadmeMarkdown_WhenMissing_ReturnsNull()
        {
            var provider = new GitHubProvider();
            var content  = await provider.GetReadmeMarkdown(Guid.NewGuid().ToString());

            Assert.IsNull(content);
        }
示例#2
0
        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"));
        }
示例#3
0
        public async Task GetReadmeMarkdown_WhenAvailable_ReturnsDecodedString()
        {
            var provider = new GitHubProvider();
            var content  = await provider.GetReadmeMarkdown("Wu10Man");

            Assert.NotNull(content);
            Assert.IsTrue(content.Contains('*'));
        }