{"action":"created","comment":{"url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments/25515473","id":25515473,"diff_hunk":"@@ -415,5 +415,20 @@ public void InterfaceShadowedMethodsReturnValueFromFixture()\n             // Teardown\n         }\n \n+        [Fact]\n+        public void InterfacesImplementingIEnumerableReturnFiniteSequence()\n+        {\n+            var fixture = new Fixture();\n+            fixture.Customize(new AutoConfiguredNSubstituteCustomization());\n+            var sut = fixture.Create<IMyList<string>>();\n+\n+            var result = sut.Take(4).Count();\n+\n+            Assert.Equal(3, result);","path":"Src/AutoNSubstituteUnitTest/AutoConfiguredFixtureIntegrationTest.cs","position":null,"original_position":13,"commit_id":"835ae9bdcc889f7a29335047931dcaba699d4577","original_commit_id":"53800570dda6966e174b781a75d0760ba1a4f03c","user":{"login":"mrinaldi","id":1226112,"avatar_url":"https://avatars.githubusercontent.com/u/1226112?v=3","gravatar_id":"","url":"https://api.github.com/users/mrinaldi","html_url":"https://github.com/mrinaldi","followers_url":"https://api.github.com/users/mrinaldi/followers","following_url":"https://api.github.com/users/mrinaldi/following{/other_user}","gists_url":"https://api.github.com/users/mrinaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrinaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrinaldi/subscriptions","organizations_url":"https://api.github.com/users/mrinaldi/orgs","repos_url":"https://api.github.com/users/mrinaldi/repos","events_url":"https://api.github.com/users/mrinaldi/events{/privacy}","received_events_url":"https://api.github.com/users/mrinaldi/received_events","type":"User","site_admin":false},"body":"I should have derived the value. Done in 835ae9b.","created_at":"2015-02-27T15:55:59Z","updated_at":"2015-02-27T15:55:59Z","html_url":"https://github.com/AutoFixture/AutoFixture/pull/351#discussion_r25515473","pull_request_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351","_links":{"self":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments/25515473"},"html":{"href":"https://github.com/AutoFixture/AutoFixture/pull/351#discussion_r25515473"},"pull_request":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351"}}},"pull_request":{"url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351","id":29981409,"html_url":"https://github.com/AutoFixture/AutoFixture/pull/351","diff_url":"https://github.com/AutoFixture/AutoFixture/pull/351.diff","patch_url":"https://github.com/AutoFixture/AutoFixture/pull/351.patch","issue_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/351","number":351,"state":"open","locked":false,"title":"Changed AutoConfiguredNSubstituteCustomization to return finite sequences for abstract types implementing IEnumerable<T>","user":{"login":"mrinaldi","id":1226112,"avatar_url":"https://avatars.githubusercontent.com/u/1226112?v=3","gravatar_id":"","url":"https://api.github.com/users/mrinaldi","html_url":"https://github.com/mrinaldi","followers_url":"https://api.github.com/users/mrinaldi/followers","following_url":"https://api.github.com/users/mrinaldi/following{/other_user}","gists_url":"https://api.github.com/users/mrinaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrinaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrinaldi/subscriptions","organizations_url":"https://api.github.com/users/mrinaldi/orgs","repos_url":"https://api.github.com/users/mrinaldi/repos","events_url":"https://api.github.com/users/mrinaldi/events{/privacy}","received_events_url":"https://api.github.com/users/mrinaldi/received_events","type":"User","site_admin":false},"body":"This PR fixes #350.\r\n\r\nIt sets up auto-configured NSubstitute mocks that returns ``IEnumerator<T>`` and any abstract type implementing ``IEnumerable<T>`` to return a finite sequence.\r\n\r\nNote that for interfaces like this:\r\n\r\n```c#\r\npublic interface IMyList<T> : IEnumerable<T>\r\n{\r\n    int Count { get; }\r\n}\r\n```\r\n\r\n``list.Count`` will not be equal to ``list.Count()``, since the former will be setup to return from AutoFixture while the latter will be processed by LINQ and will return the count of the ``GetEnumerator()`` items.","created_at":"2015-02-25T12:02:11Z","updated_at":"2015-02-27T15:55:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2b690b571aa603d8078b2f41c6c9ea9d6246537","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351/commits","review_comments_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351/comments","review_comment_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/351/comments","statuses_url":"https://api.github.com/repos/AutoFixture/AutoFixture/statuses/835ae9bdcc889f7a29335047931dcaba699d4577","head":{"label":"mrinaldi:issue-350","ref":"issue-350","sha":"835ae9bdcc889f7a29335047931dcaba699d4577","user":{"login":"mrinaldi","id":1226112,"avatar_url":"https://avatars.githubusercontent.com/u/1226112?v=3","gravatar_id":"","url":"https://api.github.com/users/mrinaldi","html_url":"https://github.com/mrinaldi","followers_url":"https://api.github.com/users/mrinaldi/followers","following_url":"https://api.github.com/users/mrinaldi/following{/other_user}","gists_url":"https://api.github.com/users/mrinaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrinaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrinaldi/subscriptions","organizations_url":"https://api.github.com/users/mrinaldi/orgs","repos_url":"https://api.github.com/users/mrinaldi/repos","events_url":"https://api.github.com/users/mrinaldi/events{/privacy}","received_events_url":"https://api.github.com/users/mrinaldi/received_events","type":"User","site_admin":false},"repo":{"id":23241581,"name":"AutoFixture","full_name":"mrinaldi/AutoFixture","owner":{"login":"mrinaldi","id":1226112,"avatar_url":"https://avatars.githubusercontent.com/u/1226112?v=3","gravatar_id":"","url":"https://api.github.com/users/mrinaldi","html_url":"https://github.com/mrinaldi","followers_url":"https://api.github.com/users/mrinaldi/followers","following_url":"https://api.github.com/users/mrinaldi/following{/other_user}","gists_url":"https://api.github.com/users/mrinaldi/gists{/gist_id}","starred_url":"https://api.github.com/users/mrinaldi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrinaldi/subscriptions","organizations_url":"https://api.github.com/users/mrinaldi/orgs","repos_url":"https://api.github.com/users/mrinaldi/repos","events_url":"https://api.github.com/users/mrinaldi/events{/privacy}","received_events_url":"https://api.github.com/users/mrinaldi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrinaldi/AutoFixture","description":"AutoFixture is an open source framework for .NET designed to minimize the 'Arrange' phase of your unit tests. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.","fork":true,"url":"https://api.github.com/repos/mrinaldi/AutoFixture","forks_url":"https://api.github.com/repos/mrinaldi/AutoFixture/forks","keys_url":"https://api.github.com/repos/mrinaldi/AutoFixture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrinaldi/AutoFixture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrinaldi/AutoFixture/teams","hooks_url":"https://api.github.com/repos/mrinaldi/AutoFixture/hooks","issue_events_url":"https://api.github.com/repos/mrinaldi/AutoFixture/issues/events{/number}","events_url":"https://api.github.com/repos/mrinaldi/AutoFixture/events","assignees_url":"https://api.github.com/repos/mrinaldi/AutoFixture/assignees{/user}","branches_url":"https://api.github.com/repos/mrinaldi/AutoFixture/branches{/branch}","tags_url":"https://api.github.com/repos/mrinaldi/AutoFixture/tags","blobs_url":"https://api.github.com/repos/mrinaldi/AutoFixture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrinaldi/AutoFixture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrinaldi/AutoFixture/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrinaldi/AutoFixture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrinaldi/AutoFixture/statuses/{sha}","languages_url":"https://api.github.com/repos/mrinaldi/AutoFixture/languages","stargazers_url":"https://api.github.com/repos/mrinaldi/AutoFixture/stargazers","contributors_url":"https://api.github.com/repos/mrinaldi/AutoFixture/contributors","subscribers_url":"https://api.github.com/repos/mrinaldi/AutoFixture/subscribers","subscription_url":"https://api.github.com/repos/mrinaldi/AutoFixture/subscription","commits_url":"https://api.github.com/repos/mrinaldi/AutoFixture/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrinaldi/AutoFixture/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrinaldi/AutoFixture/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrinaldi/AutoFixture/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrinaldi/AutoFixture/contents/{+path}","compare_url":"https://api.github.com/repos/mrinaldi/AutoFixture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrinaldi/AutoFixture/merges","archive_url":"https://api.github.com/repos/mrinaldi/AutoFixture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrinaldi/AutoFixture/downloads","issues_url":"https://api.github.com/repos/mrinaldi/AutoFixture/issues{/number}","pulls_url":"https://api.github.com/repos/mrinaldi/AutoFixture/pulls{/number}","milestones_url":"https://api.github.com/repos/mrinaldi/AutoFixture/milestones{/number}","notifications_url":"https://api.github.com/repos/mrinaldi/AutoFixture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrinaldi/AutoFixture/labels{/name}","releases_url":"https://api.github.com/repos/mrinaldi/AutoFixture/releases{/id}","created_at":"2014-08-22T22:16:22Z","updated_at":"2015-02-27T15:54:19Z","pushed_at":"2015-02-27T15:54:35Z","git_url":"git://github.com/mrinaldi/AutoFixture.git","ssh_url":"git@github.com:mrinaldi/AutoFixture.git","clone_url":"https://github.com/mrinaldi/AutoFixture.git","svn_url":"https://github.com/mrinaldi/AutoFixture","homepage":"","size":20903,"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":"AutoFixture:master","ref":"master","sha":"d02f102301af95908e31dcb0e5c628abe48cbb8b","user":{"login":"AutoFixture","id":1786815,"avatar_url":"https://avatars.githubusercontent.com/u/1786815?v=3","gravatar_id":"","url":"https://api.github.com/users/AutoFixture","html_url":"https://github.com/AutoFixture","followers_url":"https://api.github.com/users/AutoFixture/followers","following_url":"https://api.github.com/users/AutoFixture/following{/other_user}","gists_url":"https://api.github.com/users/AutoFixture/gists{/gist_id}","starred_url":"https://api.github.com/users/AutoFixture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutoFixture/subscriptions","organizations_url":"https://api.github.com/users/AutoFixture/orgs","repos_url":"https://api.github.com/users/AutoFixture/repos","events_url":"https://api.github.com/users/AutoFixture/events{/privacy}","received_events_url":"https://api.github.com/users/AutoFixture/received_events","type":"Organization","site_admin":false},"repo":{"id":4475900,"name":"AutoFixture","full_name":"AutoFixture/AutoFixture","owner":{"login":"AutoFixture","id":1786815,"avatar_url":"https://avatars.githubusercontent.com/u/1786815?v=3","gravatar_id":"","url":"https://api.github.com/users/AutoFixture","html_url":"https://github.com/AutoFixture","followers_url":"https://api.github.com/users/AutoFixture/followers","following_url":"https://api.github.com/users/AutoFixture/following{/other_user}","gists_url":"https://api.github.com/users/AutoFixture/gists{/gist_id}","starred_url":"https://api.github.com/users/AutoFixture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AutoFixture/subscriptions","organizations_url":"https://api.github.com/users/AutoFixture/orgs","repos_url":"https://api.github.com/users/AutoFixture/repos","events_url":"https://api.github.com/users/AutoFixture/events{/privacy}","received_events_url":"https://api.github.com/users/AutoFixture/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AutoFixture/AutoFixture","description":"AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximise maintainability.Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.","fork":false,"url":"https://api.github.com/repos/AutoFixture/AutoFixture","forks_url":"https://api.github.com/repos/AutoFixture/AutoFixture/forks","keys_url":"https://api.github.com/repos/AutoFixture/AutoFixture/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AutoFixture/AutoFixture/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AutoFixture/AutoFixture/teams","hooks_url":"https://api.github.com/repos/AutoFixture/AutoFixture/hooks","issue_events_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/events{/number}","events_url":"https://api.github.com/repos/AutoFixture/AutoFixture/events","assignees_url":"https://api.github.com/repos/AutoFixture/AutoFixture/assignees{/user}","branches_url":"https://api.github.com/repos/AutoFixture/AutoFixture/branches{/branch}","tags_url":"https://api.github.com/repos/AutoFixture/AutoFixture/tags","blobs_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/refs{/sha}","trees_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AutoFixture/AutoFixture/statuses/{sha}","languages_url":"https://api.github.com/repos/AutoFixture/AutoFixture/languages","stargazers_url":"https://api.github.com/repos/AutoFixture/AutoFixture/stargazers","contributors_url":"https://api.github.com/repos/AutoFixture/AutoFixture/contributors","subscribers_url":"https://api.github.com/repos/AutoFixture/AutoFixture/subscribers","subscription_url":"https://api.github.com/repos/AutoFixture/AutoFixture/subscription","commits_url":"https://api.github.com/repos/AutoFixture/AutoFixture/commits{/sha}","git_commits_url":"https://api.github.com/repos/AutoFixture/AutoFixture/git/commits{/sha}","comments_url":"https://api.github.com/repos/AutoFixture/AutoFixture/comments{/number}","issue_comment_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/comments{/number}","contents_url":"https://api.github.com/repos/AutoFixture/AutoFixture/contents/{+path}","compare_url":"https://api.github.com/repos/AutoFixture/AutoFixture/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AutoFixture/AutoFixture/merges","archive_url":"https://api.github.com/repos/AutoFixture/AutoFixture/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AutoFixture/AutoFixture/downloads","issues_url":"https://api.github.com/repos/AutoFixture/AutoFixture/issues{/number}","pulls_url":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls{/number}","milestones_url":"https://api.github.com/repos/AutoFixture/AutoFixture/milestones{/number}","notifications_url":"https://api.github.com/repos/AutoFixture/AutoFixture/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AutoFixture/AutoFixture/labels{/name}","releases_url":"https://api.github.com/repos/AutoFixture/AutoFixture/releases{/id}","created_at":"2012-05-29T00:00:02Z","updated_at":"2015-02-27T08:57:18Z","pushed_at":"2015-02-21T11:30:57Z","git_url":"git://github.com/AutoFixture/AutoFixture.git","ssh_url":"git@github.com:AutoFixture/AutoFixture.git","clone_url":"https://github.com/AutoFixture/AutoFixture.git","svn_url":"https://github.com/AutoFixture/AutoFixture","homepage":"","size":32412,"stargazers_count":484,"watchers_count":484,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"open_issues_count":37,"forks":95,"open_issues":37,"watchers":484,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351"},"html":{"href":"https://github.com/AutoFixture/AutoFixture/pull/351"},"issue":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/351"},"comments":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/issues/351/comments"},"review_comments":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351/comments"},"review_comment":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/pulls/351/commits"},"statuses":{"href":"https://api.github.com/repos/AutoFixture/AutoFixture/statuses/835ae9bdcc889f7a29335047931dcaba699d4577"}}}}