Hi Halstein Tonheim,
Thanks a lot for bringing up these questions.
1) I'm pasting one of the comments on the JustMock announcement post which explains how JustMock works:
The free mocking frameworks like Rhino Mocks and Moq that you mentioned use the "DynamicProxy approach" and build the mock objects dynamically. I think both these frameworks use an OS project called Castle DynamicProxy. We decided to build our own dynamic proxy library as we wanted something much simpler to meet our mocking needs only.
The advantage of the proxy approach is that these frameworks are quite easy to use as you just need to reference a dll in your unit test project and then just start using the mocking API.
The disadvantage of this approach is that this way you can't mock static methods and classes, sealed classes. non virtual methods and properties and so on.
To mock these things JustMock uses the .NET Profiling API and behaves like a profiler but instead of profiling the code it changes it before the just-in-time compilation and injects code in the original code on-the-fly. You could find more information about this approach here:
This approach is quite powerful but has its own disadvantages like the hard deployment. You need to have it integrated with your Visual Studio and also with your testing framework and also in some cases its performance is worse compared to how the dynamic proxy approach works.
In JustMock we've tried to take the best of both worlds and that's why we stated that we can bring something new to the table.
So in short, JustMock uses the profiler only when necessary - when it mocks static methods and classes, final methods and so on.
2) You should have problems with it only if you're using some profiler to profile tests which use JustMock's profiler (e.g. which mock static stuff, non-virtual members and so on).
We know that this is a limitation which we should try to address soon but we first want to see how many people are profiling such tests so that we give this item the right priority. If it's something that people do often we'll give it a high priority and we'll try to make JustMock play nice with some of the popular profilers.
3) Currently JustMock supports both x86 and x64 processes so you shouldn't have problems with that. Should you have some problems with some specific scenario please contact us and we'll try to assist you.
Hope this information helps.
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items.