{"action":"created","issue":{"url":"https://api.github.com/repos/machine/machine.fakes/issues/29","labels_url":"https://api.github.com/repos/machine/machine.fakes/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/machine/machine.fakes/issues/29/comments","events_url":"https://api.github.com/repos/machine/machine.fakes/issues/29/events","html_url":"https://github.com/machine/machine.fakes/pull/29","id":72421991,"number":29,"title":"MethodCallOccurrence for NSubstitute was not counting calls with arguments correctly.","user":{"login":"shamp00","id":1511180,"avatar_url":"https://avatars.githubusercontent.com/u/1511180?v=3","gravatar_id":"","url":"https://api.github.com/users/shamp00","html_url":"https://github.com/shamp00","followers_url":"https://api.github.com/users/shamp00/followers","following_url":"https://api.github.com/users/shamp00/following{/other_user}","gists_url":"https://api.github.com/users/shamp00/gists{/gist_id}","starred_url":"https://api.github.com/users/shamp00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamp00/subscriptions","organizations_url":"https://api.github.com/users/shamp00/orgs","repos_url":"https://api.github.com/users/shamp00/repos","events_url":"https://api.github.com/users/shamp00/events{/privacy}","received_events_url":"https://api.github.com/users/shamp00/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-01T12:21:14Z","updated_at":"2015-05-01T15:38:11Z","closed_at":"2015-05-01T15:32:59Z","pull_request":{"url":"https://api.github.com/repos/machine/machine.fakes/pulls/29","html_url":"https://github.com/machine/machine.fakes/pull/29","diff_url":"https://github.com/machine/machine.fakes/pull/29.diff","patch_url":"https://github.com/machine/machine.fakes/pull/29.patch"},"body":"The number of calls is counted incorrectly when the call includes arguments. \r\n\r\nIt only fails for NSubstitute. The other mocking libraries handle it correctly. \r\n\r\nI've fixed the problem and and added a new unit test to the T4 file for _MethodCallOccurrenceSpecs.tt_.\r\n\r\nFor instance:\r\n```cs\r\n    public interface ICalculator\r\n    {\r\n        void Add(int x);\r\n    }\r\n\r\n    [Subject(typeof(ICalculator))]\r\n    public class When_a_method_is_called_on_a_fake : WithFakes\r\n    {\r\n        Because of = () => \r\n        {\r\n            The<ICalculator>().Add(1);\r\n            The<ICalculator>().Add(2);\r\n            The<ICalculator>().Add(3);\r\n        };\r\n\r\n        It should_be_able_to_verify_that = () => \r\n            The<ICalculator>()\r\n                .WasToldTo(s => s.Add(2))\r\n                .OnlyOnce();\r\n    }\r\n```\r\n\r\nfails with\r\n\r\n> Expected only 1 call to the method but received 3\r\n   at Machine.Fakes.Adapters.NSubstitute.NSubstituteMethodCallOccurrence`1.OnlyOnce()\r\n\r\n.\r\n"},"comment":{"url":"https://api.github.com/repos/machine/machine.fakes/issues/comments/98159675","html_url":"https://github.com/machine/machine.fakes/pull/29#issuecomment-98159675","issue_url":"https://api.github.com/repos/machine/machine.fakes/issues/29","id":98159675,"user":{"login":"SimonHohenadl","id":144405,"avatar_url":"https://avatars.githubusercontent.com/u/144405?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonHohenadl","html_url":"https://github.com/SimonHohenadl","followers_url":"https://api.github.com/users/SimonHohenadl/followers","following_url":"https://api.github.com/users/SimonHohenadl/following{/other_user}","gists_url":"https://api.github.com/users/SimonHohenadl/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonHohenadl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonHohenadl/subscriptions","organizations_url":"https://api.github.com/users/SimonHohenadl/orgs","repos_url":"https://api.github.com/users/SimonHohenadl/repos","events_url":"https://api.github.com/users/SimonHohenadl/events{/privacy}","received_events_url":"https://api.github.com/users/SimonHohenadl/received_events","type":"User","site_admin":false},"created_at":"2015-05-01T15:38:11Z","updated_at":"2015-05-01T15:38:11Z","body":"Great, thanks!"}}