3 ms·
If you are looking at mocking in .Net, make sure that the framework you select can easily mock properties and delegates as well as simple method calls. I don't
by timclark 16y ago
If you are looking at mocking in .Net, make sure that the framework you select can easily mock properties and delegates as well as simple method calls. I don't believe they all do!
- borisk 16y agoThere are two types of mocking frameworks for .NET. Most, like NMock, Moq, Rhino Mocks are written in managed code and cannot mock static, sealed or private methods. On the other hand Typemock Isolator, Telerick JustMock and Microsoft Moles are using the .NET Profiler API (using that requires some unmanaged code). The last 3 can even mock stuff from mscorlib, like DateTime.Now.