Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any open source mocking framework resembling TypeMock? [closed]

TypeMock is too expensive for a hobbist like me :)

Moq or the next version of RhinoMocks have no plans on listening to the profiling API, why is that?

EDIT: This enables features such as:

  • Mocking non-virtual methods and properties (!).
  • Mocking browser environments.
  • simpler syntax which is less fragile (and not having to go trough mock objects).
  • Mocking static methods Sometimes is useful (Mostly in legacy scenarios, involving the dreaded DateTime.Now).
  • And more..
like image 414
gkdm Avatar asked Oct 07 '09 20:10

gkdm


People also ask

Is typemock isolator free?

"Typemock Isolator Basic is the only free unit-testing tool that offers not just a mocking framework, but a complete unit-testing tool suite." The Typemock Isolator Basic free developer tool includes some of the core key features available in the paid Isolator versions.

How is a mocking framework used for verification?

Verify methods were called Mocking frameworks add another way to test - checking whether methods were called, in which order, how many times and with which arguments. For example, let's say that a new test is required for adding a new user: if that user does not exist than call IDataAccess. AddNewUser method.

Why do we need mocking framework?

A complete mocking framework like JustMock enables developers to focus solely on testing the system under test and forget about the distracting mocking details. Mock objects are created automatically in memory when the tests are run based on the simple configuration in the unit test.


1 Answers

TypeMock is too expensive for a hobbist like me

It's probably also too expensive to develop and release for free.

like image 55
Jeff Hornby Avatar answered Sep 22 '22 08:09

Jeff Hornby