{"action":"created","comment":{"url":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/comments/85306213","pull_request_review_id":6027173,"id":85306213,"diff_hunk":"@@ -0,0 +1,140 @@\n+﻿namespace MoreDotNet.Tests.Extensions.Common.RandomExtensions\n+{\n+    using System;\n+\n+    using Moq;\n+    using MoreDotNet.Extensions.Common;\n+\n+    using Xunit;\n+\n+    public class NextCharTests\n+    {\n+        [Fact]\n+        public void NextChar_ShouldReturnChar()\n+        {\n+            var random = new Random();\n+            var result = random.NextChar();\n+\n+            Assert.IsType<char>(result);\n+        }\n+\n+        [Fact]\n+        public void NextChar_ShoudReturnChar_CapitalLetter()\n+        {\n+            char mockedResult = 'A';\n+            var randomMock = new Mock<Random>();\n+            randomMock.Setup(r => r.Next(It.IsAny<int>(), It.IsAny<int>())).Returns((int)mockedResult);\n+            randomMock.Setup(r => r.NextDouble()).Returns(0.168);\n+            char result = randomMock.Object.NextChar();\n+\n+            Assert.Equal((int)mockedResult, (int)result);\n+        }\n+\n+        [Fact]\n+        public void NextChar_ShoudReturnChar_Number()\n+        {\n+            char mockedResult = '1';\n+            var randomMock = new Mock<Random>();\n+            randomMock.Setup(r => r.Next(It.IsAny<int>(), It.IsAny<int>())).Returns((int)mockedResult);\n+            randomMock.Setup(r => r.NextDouble()).Returns(0.15);\n+            char result = randomMock.Object.NextChar();\n+\n+            Assert.Equal((int)mockedResult, (int)result);\n+        }\n+\n+        [Fact]\n+        public void NextChar_ShoudReturnChar_AlphabeticLower()\n+        {\n+            char mockedResult = 'a';\n+            var randomMock = new Mock<Random>();\n+            randomMock.Setup(r => r.Next(It.IsAny<int>(), It.IsAny<int>())).Returns((int)mockedResult);\n+            randomMock.Setup(r => r.NextDouble()).Returns(0.51);\n+            char result = randomMock.Object.NextChar(MoreDotNet.Models.CharType.AlphabeticLower);\n+\n+            Assert.Equal((int)mockedResult, (int)result);","path":"Source/MoreDotNet.Test/Extensions/Common/RandomExtensions/NextCharTests.cs","position":54,"original_position":54,"commit_id":"22b6238def8f7a803ecc3ccd2d66758299badfad","original_commit_id":"22b6238def8f7a803ecc3ccd2d66758299badfad","user":{"login":"Teodor92","id":3375056,"avatar_url":"https://avatars.githubusercontent.com/u/3375056?v=3","gravatar_id":"","url":"https://api.github.com/users/Teodor92","html_url":"https://github.com/Teodor92","followers_url":"https://api.github.com/users/Teodor92/followers","following_url":"https://api.github.com/users/Teodor92/following{/other_user}","gists_url":"https://api.github.com/users/Teodor92/gists{/gist_id}","starred_url":"https://api.github.com/users/Teodor92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teodor92/subscriptions","organizations_url":"https://api.github.com/users/Teodor92/orgs","repos_url":"https://api.github.com/users/Teodor92/repos","events_url":"https://api.github.com/users/Teodor92/events{/privacy}","received_events_url":"https://api.github.com/users/Teodor92/received_events","type":"User","site_admin":false},"body":"Please remove redundant cast.","created_at":"2016-10-27T10:09:12Z","updated_at":"2016-10-27T10:43:49Z","html_url":"https://github.com/Teodor92/MoreDotNet/pull/35#discussion_r85306213","pull_request_url":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/comments/85306213"},"html":{"href":"https://github.com/Teodor92/MoreDotNet/pull/35#discussion_r85306213"},"pull_request":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35","id":91083938,"html_url":"https://github.com/Teodor92/MoreDotNet/pull/35","diff_url":"https://github.com/Teodor92/MoreDotNet/pull/35.diff","patch_url":"https://github.com/Teodor92/MoreDotNet/pull/35.patch","issue_url":"https://api.github.com/repos/Teodor92/MoreDotNet/issues/35","number":35,"state":"open","locked":false,"title":"Added tests for RandomExtensions  #12 ","user":{"login":"georgimanov","id":6776241,"avatar_url":"https://avatars.githubusercontent.com/u/6776241?v=3","gravatar_id":"","url":"https://api.github.com/users/georgimanov","html_url":"https://github.com/georgimanov","followers_url":"https://api.github.com/users/georgimanov/followers","following_url":"https://api.github.com/users/georgimanov/following{/other_user}","gists_url":"https://api.github.com/users/georgimanov/gists{/gist_id}","starred_url":"https://api.github.com/users/georgimanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgimanov/subscriptions","organizations_url":"https://api.github.com/users/georgimanov/orgs","repos_url":"https://api.github.com/users/georgimanov/repos","events_url":"https://api.github.com/users/georgimanov/events{/privacy}","received_events_url":"https://api.github.com/users/georgimanov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-26T20:40:18Z","updated_at":"2016-10-27T10:43:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"049b87341be72d6eec3e94b7ef7f1666085282ed","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35/commits","review_comments_url":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35/comments","review_comment_url":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Teodor92/MoreDotNet/issues/35/comments","statuses_url":"https://api.github.com/repos/Teodor92/MoreDotNet/statuses/22b6238def8f7a803ecc3ccd2d66758299badfad","head":{"label":"georgimanov:master","ref":"master","sha":"22b6238def8f7a803ecc3ccd2d66758299badfad","user":{"login":"georgimanov","id":6776241,"avatar_url":"https://avatars.githubusercontent.com/u/6776241?v=3","gravatar_id":"","url":"https://api.github.com/users/georgimanov","html_url":"https://github.com/georgimanov","followers_url":"https://api.github.com/users/georgimanov/followers","following_url":"https://api.github.com/users/georgimanov/following{/other_user}","gists_url":"https://api.github.com/users/georgimanov/gists{/gist_id}","starred_url":"https://api.github.com/users/georgimanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgimanov/subscriptions","organizations_url":"https://api.github.com/users/georgimanov/orgs","repos_url":"https://api.github.com/users/georgimanov/repos","events_url":"https://api.github.com/users/georgimanov/events{/privacy}","received_events_url":"https://api.github.com/users/georgimanov/received_events","type":"User","site_admin":false},"repo":{"id":71707548,"name":"MoreDotNet","full_name":"georgimanov/MoreDotNet","owner":{"login":"georgimanov","id":6776241,"avatar_url":"https://avatars.githubusercontent.com/u/6776241?v=3","gravatar_id":"","url":"https://api.github.com/users/georgimanov","html_url":"https://github.com/georgimanov","followers_url":"https://api.github.com/users/georgimanov/followers","following_url":"https://api.github.com/users/georgimanov/following{/other_user}","gists_url":"https://api.github.com/users/georgimanov/gists{/gist_id}","starred_url":"https://api.github.com/users/georgimanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgimanov/subscriptions","organizations_url":"https://api.github.com/users/georgimanov/orgs","repos_url":"https://api.github.com/users/georgimanov/repos","events_url":"https://api.github.com/users/georgimanov/events{/privacy}","received_events_url":"https://api.github.com/users/georgimanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/georgimanov/MoreDotNet","description":"A combination of helpful extension methods.","fork":true,"url":"https://api.github.com/repos/georgimanov/MoreDotNet","forks_url":"https://api.github.com/repos/georgimanov/MoreDotNet/forks","keys_url":"https://api.github.com/repos/georgimanov/MoreDotNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/georgimanov/MoreDotNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/georgimanov/MoreDotNet/teams","hooks_url":"https://api.github.com/repos/georgimanov/MoreDotNet/hooks","issue_events_url":"https://api.github.com/repos/georgimanov/MoreDotNet/issues/events{/number}","events_url":"https://api.github.com/repos/georgimanov/MoreDotNet/events","assignees_url":"https://api.github.com/repos/georgimanov/MoreDotNet/assignees{/user}","branches_url":"https://api.github.com/repos/georgimanov/MoreDotNet/branches{/branch}","tags_url":"https://api.github.com/repos/georgimanov/MoreDotNet/tags","blobs_url":"https://api.github.com/repos/georgimanov/MoreDotNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/georgimanov/MoreDotNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/georgimanov/MoreDotNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/georgimanov/MoreDotNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/georgimanov/MoreDotNet/statuses/{sha}","languages_url":"https://api.github.com/repos/georgimanov/MoreDotNet/languages","stargazers_url":"https://api.github.com/repos/georgimanov/MoreDotNet/stargazers","contributors_url":"https://api.github.com/repos/georgimanov/MoreDotNet/contributors","subscribers_url":"https://api.github.com/repos/georgimanov/MoreDotNet/subscribers","subscription_url":"https://api.github.com/repos/georgimanov/MoreDotNet/subscription","commits_url":"https://api.github.com/repos/georgimanov/MoreDotNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/georgimanov/MoreDotNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/georgimanov/MoreDotNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/georgimanov/MoreDotNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/georgimanov/MoreDotNet/contents/{+path}","compare_url":"https://api.github.com/repos/georgimanov/MoreDotNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/georgimanov/MoreDotNet/merges","archive_url":"https://api.github.com/repos/georgimanov/MoreDotNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/georgimanov/MoreDotNet/downloads","issues_url":"https://api.github.com/repos/georgimanov/MoreDotNet/issues{/number}","pulls_url":"https://api.github.com/repos/georgimanov/MoreDotNet/pulls{/number}","milestones_url":"https://api.github.com/repos/georgimanov/MoreDotNet/milestones{/number}","notifications_url":"https://api.github.com/repos/georgimanov/MoreDotNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/georgimanov/MoreDotNet/labels{/name}","releases_url":"https://api.github.com/repos/georgimanov/MoreDotNet/releases{/id}","deployments_url":"https://api.github.com/repos/georgimanov/MoreDotNet/deployments","created_at":"2016-10-23T14:19:36Z","updated_at":"2016-10-23T14:19:37Z","pushed_at":"2016-10-26T20:49:22Z","git_url":"git://github.com/georgimanov/MoreDotNet.git","ssh_url":"git@github.com:georgimanov/MoreDotNet.git","clone_url":"https://github.com/georgimanov/MoreDotNet.git","svn_url":"https://github.com/georgimanov/MoreDotNet","homepage":"","size":2762,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Teodor92:master","ref":"master","sha":"cc119e483cbd3216adf2e3782c93b540c1bcdb16","user":{"login":"Teodor92","id":3375056,"avatar_url":"https://avatars.githubusercontent.com/u/3375056?v=3","gravatar_id":"","url":"https://api.github.com/users/Teodor92","html_url":"https://github.com/Teodor92","followers_url":"https://api.github.com/users/Teodor92/followers","following_url":"https://api.github.com/users/Teodor92/following{/other_user}","gists_url":"https://api.github.com/users/Teodor92/gists{/gist_id}","starred_url":"https://api.github.com/users/Teodor92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teodor92/subscriptions","organizations_url":"https://api.github.com/users/Teodor92/orgs","repos_url":"https://api.github.com/users/Teodor92/repos","events_url":"https://api.github.com/users/Teodor92/events{/privacy}","received_events_url":"https://api.github.com/users/Teodor92/received_events","type":"User","site_admin":false},"repo":{"id":53139622,"name":"MoreDotNet","full_name":"Teodor92/MoreDotNet","owner":{"login":"Teodor92","id":3375056,"avatar_url":"https://avatars.githubusercontent.com/u/3375056?v=3","gravatar_id":"","url":"https://api.github.com/users/Teodor92","html_url":"https://github.com/Teodor92","followers_url":"https://api.github.com/users/Teodor92/followers","following_url":"https://api.github.com/users/Teodor92/following{/other_user}","gists_url":"https://api.github.com/users/Teodor92/gists{/gist_id}","starred_url":"https://api.github.com/users/Teodor92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Teodor92/subscriptions","organizations_url":"https://api.github.com/users/Teodor92/orgs","repos_url":"https://api.github.com/users/Teodor92/repos","events_url":"https://api.github.com/users/Teodor92/events{/privacy}","received_events_url":"https://api.github.com/users/Teodor92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Teodor92/MoreDotNet","description":"A combination of helpful extension methods.","fork":false,"url":"https://api.github.com/repos/Teodor92/MoreDotNet","forks_url":"https://api.github.com/repos/Teodor92/MoreDotNet/forks","keys_url":"https://api.github.com/repos/Teodor92/MoreDotNet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Teodor92/MoreDotNet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Teodor92/MoreDotNet/teams","hooks_url":"https://api.github.com/repos/Teodor92/MoreDotNet/hooks","issue_events_url":"https://api.github.com/repos/Teodor92/MoreDotNet/issues/events{/number}","events_url":"https://api.github.com/repos/Teodor92/MoreDotNet/events","assignees_url":"https://api.github.com/repos/Teodor92/MoreDotNet/assignees{/user}","branches_url":"https://api.github.com/repos/Teodor92/MoreDotNet/branches{/branch}","tags_url":"https://api.github.com/repos/Teodor92/MoreDotNet/tags","blobs_url":"https://api.github.com/repos/Teodor92/MoreDotNet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Teodor92/MoreDotNet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Teodor92/MoreDotNet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Teodor92/MoreDotNet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Teodor92/MoreDotNet/statuses/{sha}","languages_url":"https://api.github.com/repos/Teodor92/MoreDotNet/languages","stargazers_url":"https://api.github.com/repos/Teodor92/MoreDotNet/stargazers","contributors_url":"https://api.github.com/repos/Teodor92/MoreDotNet/contributors","subscribers_url":"https://api.github.com/repos/Teodor92/MoreDotNet/subscribers","subscription_url":"https://api.github.com/repos/Teodor92/MoreDotNet/subscription","commits_url":"https://api.github.com/repos/Teodor92/MoreDotNet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Teodor92/MoreDotNet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Teodor92/MoreDotNet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Teodor92/MoreDotNet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Teodor92/MoreDotNet/contents/{+path}","compare_url":"https://api.github.com/repos/Teodor92/MoreDotNet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Teodor92/MoreDotNet/merges","archive_url":"https://api.github.com/repos/Teodor92/MoreDotNet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Teodor92/MoreDotNet/downloads","issues_url":"https://api.github.com/repos/Teodor92/MoreDotNet/issues{/number}","pulls_url":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls{/number}","milestones_url":"https://api.github.com/repos/Teodor92/MoreDotNet/milestones{/number}","notifications_url":"https://api.github.com/repos/Teodor92/MoreDotNet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Teodor92/MoreDotNet/labels{/name}","releases_url":"https://api.github.com/repos/Teodor92/MoreDotNet/releases{/id}","deployments_url":"https://api.github.com/repos/Teodor92/MoreDotNet/deployments","created_at":"2016-03-04T14:10:24Z","updated_at":"2016-10-22T15:56:29Z","pushed_at":"2016-10-27T09:55:51Z","git_url":"git://github.com/Teodor92/MoreDotNet.git","ssh_url":"git@github.com:Teodor92/MoreDotNet.git","clone_url":"https://github.com/Teodor92/MoreDotNet.git","svn_url":"https://github.com/Teodor92/MoreDotNet","homepage":"","size":2772,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":13,"forks":11,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35"},"html":{"href":"https://github.com/Teodor92/MoreDotNet/pull/35"},"issue":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/issues/35"},"comments":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/Teodor92/MoreDotNet/statuses/22b6238def8f7a803ecc3ccd2d66758299badfad"}}}}
{"actor":{"display_login":"Teodor92"}}