{"action":"created","issue":{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/562","labels_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/562/comments","events_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/562/events","html_url":"https://github.com/FakeItEasy/FakeItEasy/issues/562","id":119460523,"number":562,"title":"FakeItEasy failed assertion with randomly <ignored> param (and there is a match in the calls)","user":{"login":"timvanderweijde","id":1789595,"avatar_url":"https://avatars.githubusercontent.com/u/1789595?v=3","gravatar_id":"","url":"https://api.github.com/users/timvanderweijde","html_url":"https://github.com/timvanderweijde","followers_url":"https://api.github.com/users/timvanderweijde/followers","following_url":"https://api.github.com/users/timvanderweijde/following{/other_user}","gists_url":"https://api.github.com/users/timvanderweijde/gists{/gist_id}","starred_url":"https://api.github.com/users/timvanderweijde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timvanderweijde/subscriptions","organizations_url":"https://api.github.com/users/timvanderweijde/orgs","repos_url":"https://api.github.com/users/timvanderweijde/repos","events_url":"https://api.github.com/users/timvanderweijde/events{/privacy}","received_events_url":"https://api.github.com/users/timvanderweijde/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/P2","name":"P2","color":"732787"},{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/labels/question","name":"question","color":"cc317c"}],"state":"closed","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":5,"created_at":"2015-11-30T10:12:01Z","updated_at":"2015-11-30T11:29:00Z","closed_at":"2015-11-30T11:27:25Z","body":"I'm trying to implement a unit test with a methodcall assertion. (MustHaveHappened)\r\n\r\nI'm using the following code:\r\n\r\n```c#\r\n[Fact]\r\npublic void Should_set_setting_and_map_new_value_for_non_existing_setting()\r\n{\r\n    //Arrange\r\n    var userSetting = new SettingDetailsBuilder().Build();\r\n    var respository = A.Fake<ISettingsRepository>();\r\n    A.CallTo(() => respository.GetUserSetting(0, 0, null)).WithAnyArguments().Returns(userSetting);\r\n    var dataretriever = new SettingsDataRetriever(respository);\r\n\r\n    //Act\r\n    var newUserSetting = dataretriever.SetUserSetting(\"variableName\", \"SomeOtherValue\", 1, 1, \"FST\");\r\n\r\n    //Assert\r\n    A.CallTo(() => respository.GetUserSetting(1, 1, \"variableName\")).MustHaveHappened();\r\n}\r\n```\r\n\r\nBut I get randomly a failed test, whereby some arguments are mentioned as \"ignored\". However, the assertion is with exact parameters.\r\n\r\nError:\r\n\r\n    Assertion failed for the following call:\r\n        AlfaProNext.Repositories.Settings.ISettingsRepository.GetUserSetting(1, <Ignored>, <Ignored>)\r\n      Expected to find it at least once but found it #0 times among the calls:\r\n        1: AlfaProNext.Repositories.Settings.ISettingsRepository.Exists(varName: \"variableName\")\r\n        2: AlfaProNext.Repositories.Settings.ISettingsRepository.GetUserSetting(\r\n              userId: 1,\r\n              profileId: 1,\r\n              variableName: \"variableName\")\r\n\r\nDoes anybody knows why this is happening randomly?\r\n\r\nps I added the same issue on Stackoverflow. \r\nhttp://stackoverflow.com/questions/33995755/fakeiteasy-failed-assertion-with-randomly-ignored-param-and-there-is-a-match"},"comment":{"url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/comments/160605244","html_url":"https://github.com/FakeItEasy/FakeItEasy/issues/562#issuecomment-160605244","issue_url":"https://api.github.com/repos/FakeItEasy/FakeItEasy/issues/562","id":160605244,"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-11-30T11:29:00Z","updated_at":"2015-11-30T11:29:00Z","body":"Gee. That was quick. Great. In the meantime, I put essentially the same answer in the StackOverflow question, on faith.\r\n\r\nHappy FakeItEasying!"}}