Is it possible to mock (via NSubstitute) an IList.PnPContext? #1475
Unanswered
Amwins-Vault-Boy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to mock the
PnPContext
of anIList
, but this is failing:with this error:
NSubstitute.Exceptions.CouldNotSetReturnDueToTypeMismatchException : Can not return value of type ObjectProxy_6 for IDataModelWithContext.get_PnPContext (expected type PnPContext).
Is this at all possible to do? and, if so, what should I change to make this work?
Thanks for any suggestions and help!
Beta Was this translation helpful? Give feedback.
All reactions