Mocking a type with an internal constructor using Moq
You cannot mock a type that does not have a public constructor because Moq will not be able to instantiate an object of that type. Depending on what you are trying to test, you have a few options: If there’s a factory object or some other way of obtaining instances of FullEnumerationContext perhaps you can … Read more