Forum Discussion

Naresh Chinnareddi's avatar
Naresh Chinnareddi
Former Employee
Apr 02, 2018

How to Mock and Unit Test SharePoint online(Microsoft.SharePoint.Client) custom code.

We want to mock 'ListItemCollection' with test data without make any calls to SharePoint list. We tried moq and fake assemblies for Microsoft.sharepoint.client and facing error 'invalid setup on non virtual member' on mocking ListItemCollection. 

No RepliesBe the first to reply

Resources