I'm using fake it easy like so :
var callBackAction = A.Fake<Action<object>>();
//act
token.RegisterChangeCallback(callBackAction, "hi");
//assert
A.CallTo(() => callBackAction.Invoke(A<object>.Ignored)).MustHaveHappened();
and I'm getting the error
FakeItEasy.ExpectationException : Assertion failed for the following call:
System.Action`1[System.Object].Invoke(obj: <Ignored>) Expected to find it
exactly once but found it #0 times among the calls:
1: System.Action`1[System.Object].Invoke(obj: "hi)
This seems very odd to me. I could understand if it had found none or if it was something to do with overriding equals() but this is very odd as it has obviously found my call and I'm using an ignored but it is not matching them up. Is this something to do with using actions?