I'm trying to mock out a call that takes in nullable GUIDs, unfortunately when I try arranging the call:
Mock.Arrange(() => myStubInstance.DoSomthing(Arg.Any<Nullable<GUID>>()) or
Mock.Arrange(() => myStubInstance.DoSomthing(Arg.Any<GUID?>())
I get a null reference exception being thrown. I then tried change the Arrange to use just GUID as the Arg type which works, but when the call is made in the code under test with a null value, the null reference is thrown again.
How can I get around this?
Ta,
J