Hi!
When I use Arg.IsAny in the arrange for a private method, as follows:
When I use Arg.IsAny in the arrange for a private method, as follows:
Mock.NonPublic.Arrange<bool>(
target,
"IsUSPriceChangeOnCanadianAdoptedRSTitle",
mockedDBTrans,
Arg.IsAny<TitleRequestDataset.TitleRequestRow>())
.DoInstead( () => {calledIsUSPriceChangeOnCanadianAdoptedRSTitle = true;} )
.Returns(true);
I get an ArgumentException at run time with the following message:
Direct null valued argument for non-public member is not supported. Use ArgExpr.IsNull<T>() or other members from ArgExpr wrapper class to provide your specification.
Please advise on how to get around this.
Thanks,
Asim