You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The constructor arguments that are passed to a mocked class' constructor are now typed as object[], this causes a lot of unwarranted warnings when passing null, because the mocked class in question might actually allow null for its arguments. The type should be changed to object?[].
I'm running into this problem when constructing Mock:
public Mock(params object[] args)
public Mock(MockBehaviorbehavior,paramsobject[] args)
These should be changed to:
public Mock(params object?[] args)
public Mock(MockBehaviorbehavior,paramsobject?[] args)
The text was updated successfully, but these errors were encountered:
The constructor arguments that are passed to a mocked class' constructor are now typed as
object[]
, this causes a lot of unwarranted warnings when passing null, because the mocked class in question might actually allow null for its arguments. The type should be changed toobject?[]
.I'm running into this problem when constructing Mock:
These should be changed to:
The text was updated successfully, but these errors were encountered: