{"action":"created","issue":{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/508","labels_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/508/comments","events_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/508/events","html_url":"https://github.com/FakeItEasy/FakeItEasy/issues/508","id":95167426,"number":508,"title":"Configuring Stream.Read(byte[], int, int) does not work - complains of mismatched out/ref args","user":{"login":"blairconrad","id":3275797,"avatar_url":"https://avatars.githubusercontent.com/u/3275797?v=3","gravatar_id":"","url":"https://api.github.com/users/blairconrad","html_url":"https://github.com/blairconrad","followers_url":"https://api.github.com/users/blairconrad/followers","following_url":"https://api.github.com/users/blairconrad/following{/other_user}","gists_url":"https://api.github.com/users/blairconrad/gists{/gist_id}","starred_url":"https://api.github.com/users/blairconrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blairconrad/subscriptions","organizations_url":"https://api.github.com/users/blairconrad/orgs","repos_url":"https://api.github.com/users/blairconrad/repos","events_url":"https://api.github.com/users/blairconrad/events{/privacy}","received_events_url":"https://api.github.com/users/blairconrad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/labels/bug","name":"bug","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"blairconrad","id":3275797,"avatar_url":"https://avatars.githubusercontent.com/u/3275797?v=3","gravatar_id":"","url":"https://api.github.com/users/blairconrad","html_url":"https://github.com/blairconrad","followers_url":"https://api.github.com/users/blairconrad/followers","following_url":"https://api.github.com/users/blairconrad/following{/other_user}","gists_url":"https://api.github.com/users/blairconrad/gists{/gist_id}","starred_url":"https://api.github.com/users/blairconrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blairconrad/subscriptions","organizations_url":"https://api.github.com/users/blairconrad/orgs","repos_url":"https://api.github.com/users/blairconrad/repos","events_url":"https://api.github.com/users/blairconrad/events{/privacy}","received_events_url":"https://api.github.com/users/blairconrad/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-07-15T11:12:32Z","updated_at":"2015-07-17T01:56:39Z","closed_at":null,"body":"From [Richard Lang's Stackoverflow Question \"A.Fake<Stream>().Read(…) throwing InvalidOperationException\"](http://stackoverflow.com/questions/31419162/a-fakestream-read-throwing-invalidoperationexception):\r\n\r\nWhen running \r\n\r\n```csharp\r\n[Test]\r\npublic void test_whatIsUpWithStreamRead()\r\n{\r\n    Stream fakeStream = A.Fake<Stream>();\r\n\r\n    A.CallTo(() => fakeStream.Read(A<byte[]>.Ignored, A<int>.Ignored, A<int>.Ignored))\r\n        .Returns(1);\r\n\r\n    byte[] buffer = new byte[16];\r\n\r\n    int numBytesRead = fakeStream.Read(buffer, 0, 16);\r\n\r\n    Assert.AreEqual(1, numBytesRead);\r\n}\r\n```\r\n\r\nThe `fakeStream.Read` \r\nthrows a System.InvalidOperationException with the message:\r\n\r\n> The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.\r\n\r\nI've reproduced, and started debugging, but do not yet know where we're going wrong."},"comment":{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/comments/122147731","html_url":"https://github.com/FakeItEasy/FakeItEasy/issues/508#issuecomment-122147731","issue_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/508","id":122147731,"user":{"login":"blairconrad","id":3275797,"avatar_url":"https://avatars.githubusercontent.com/u/3275797?v=3","gravatar_id":"","url":"https://api.github.com/users/blairconrad","html_url":"https://github.com/blairconrad","followers_url":"https://api.github.com/users/blairconrad/followers","following_url":"https://api.github.com/users/blairconrad/following{/other_user}","gists_url":"https://api.github.com/users/blairconrad/gists{/gist_id}","starred_url":"https://api.github.com/users/blairconrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blairconrad/subscriptions","organizations_url":"https://api.github.com/users/blairconrad/orgs","repos_url":"https://api.github.com/users/blairconrad/repos","events_url":"https://api.github.com/users/blairconrad/events{/privacy}","received_events_url":"https://api.github.com/users/blairconrad/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T01:56:39Z","updated_at":"2015-07-17T01:56:39Z","body":"@FakeItEasy/owners, I think I can whip up a fix fairly quickly.\r\nDo we think it's worth releasing a 1.25.3? My preference would be to wait until 2.0.0, but progress on that release has stalled, so I've no feeling for how much longer that will be."}}