Re:Mocking in .NET - Moving From NMock to Moq
by timclark on Wednesday July 14, 2010 @05:58AM
(#1514126)
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!
[ Parent
| on HN ]
Re:Mocking in .NET - Moving From NMock to Moq
by borisk on Wednesday July 14, 2010 @08:05AM
(#1514304)
There 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.