Open WalkerCodeRanger opened 1 year ago
null
is definitely allowed, see e.g. here:
What is missing, however, are nullable reference type annotations in all of Moq's public API. It would be nice to add those sometime.
P.S.: regarding these annotations, I've opened a separate issue for them; see #1418.
Due to lack of recent activity, this issue has been labeled as 'stale'. It will be closed if no further activity occurs within 30 more days. Any new comment will remove the label.
The overloads of
new Mock<T>()
that takeparams object[] args
to pass on to the constructor of the class ought to allow null arguments (e.g.object?[] args
).