![How to test a class that has constructor impossible to mock?](/_next/image?url=%2Fstatic%2Fimages%2Fblog%2Fthumbs%2Funit_test_ctor.jpg&w=384&q=50)
- Published on
In some cases, there are classes with constructors that are impossible to mock with proxy-based mocking frameworks (such as Moq, FakeItEasy, NSubstitute, etc). In this article, I will present how to create a test for class that is impossible to mock.