Hello,
I want to mock a custom class, but only "normal" constructors. For doing so I use Reflective Mocks, as the class does not have any public constructors:
Mock SystemImageListMock = MockManager.Mock(typeof(SystemImageList), Constructor.StaticNotMocked);
However the static constructor is not called! This only happens when using
Mock SystemImageListMock = MockManager.Mock(typeof(SystemImageList), Constructor.NotMocked);
... but using this snippet, also the "normal" constructor is not mocked!
What is my mistake? What am I doing wrong?
Thanks for your help
Philipp