Moq unit testing methods and classes that are static
I am trying to create a unit test framework using VS built in unit testing and using the Moq framework.
Is there a generic way to use SetReturnsDefault in Moq
I have a data access interface looking roughly like this:
Is there a way to moq this?
I’m kinda new to Unit testing and Moq, and I’m struggling to test the following code:
Can I use moq Mock to mock a class, not an interface?
Going through https://github.com/Moq/moq4/wiki/Quickstart, I see it Mock an interface.