public async Task EnsuresArgumentsNotNull()
        {
            var connection = Substitute.For<IApiConnection>();
            var client = new IssueCommentsClient(connection);

            await AssertEx.Throws<ArgumentNullException>(async () => await client.GetForIssue(null, "name", 1));
            await AssertEx.Throws<ArgumentException>(async () => await client.GetForIssue("", "name", 1));
            await AssertEx.Throws<ArgumentNullException>(async () => await client.GetForIssue("owner", null, 1));
            await AssertEx.Throws<ArgumentException>(async () => await client.GetForIssue("owner", "", 1));
        }
        public void RequestsCorrectUrl()
        {
            var connection = Substitute.For<IApiConnection>();
            var client = new IssueCommentsClient(connection);

            client.GetForIssue("fake", "repo", 3);

            connection.Received().GetAll<IssueComment>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/issues/3/comments"));
        }