Beispiel #1
0
        public async Task TestGetCommentReplies()
        {
            var imgurClient = await AuthenticationHelpers.CreateOAuth2AuthenticatedImgurClient();

            var commentEndpoint = new CommentEndpoint(imgurClient);
            var comment         = await commentEndpoint.GetCommentRepliesAsync(193421419);

            // Assert the Reponse
            Assert.IsNotNull(comment.Data);
            Assert.AreEqual(comment.Success, true);
            Assert.AreEqual(comment.Status, HttpStatusCode.OK);
        }