public void GetPullRequestComment_ExistingCommentOnAPublicPullRequest_ReturnValidInfo() { var comment = ExistingPullRequest.GetPullRequestComment(53789); comment.ShouldBeFilled(); comment.content.raw.ShouldBe("This repo is not used for development, it's just a mirror (and I am just an infrequent contributor). Please consult http://mercurial.selenic.com/wiki/ContributingChanges and send your patch to ``mercurial-devel`` ML."); }
public void GetPullRequestComment_NotExistingCommentOnPublicPullRequest_ReturnEmpty() { var comment = ExistingPullRequest.GetPullRequestComment(int.MaxValue); comment.ShouldNotBeNull(); comment.id.ShouldBeNull(); }
public void GetPullRequestComment_NotExistingCommentOnPublicPullRequest_ThrowException() { var exception = Assert.Throws <BitbucketV2Exception>(() => ExistingPullRequest.GetPullRequestComment(int.MaxValue)); exception.HttpStatusCode.ShouldBe(HttpStatusCode.NotFound); }