I made following stub
_Service.Stub(s => s.Login(Arg<string>.Is.Anything, Arg<string>.Is.Anything, Arg<int>.Is.Anything, out ggg)).OutRef(55);
the last parameter is a out
parameter of type int
.
I want to make following Assert
_Service.AssertWasNotCalled(s => s.Login(Arg<string>.Is.Anything, Arg<string>.Is.Anything,Arg<int>.Is.Anything , ??????? ));
But how I note out
parameter here ?
"Simply" use:
_Service.AssertWasNotCalled(s => s.Login(
Arg<string>.Is.Anything,
Arg<string>.Is.Anything,
Arg<int>.Is.Anything ,
out Arg<int>.Out(10).Dummy
));
The value passed to Out
method is irrelevant (.Dummy
call is the important one).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With