Sometimes your code depends on a class instance that you have no control over how it is created. With JustMock mocking such a class instance is a one-line code. This feature is especially handy when you work with third-party libraries, controls or tools.
This feature is a part of the fastest, most flexible and complete mocking tool for crafting unit tests.
Our award-winning support team is dedicated to assisting you with any questions and issues you may have during your application development.
Isolating the tested code from the behavior of newly created class instances somewhere along the chain of execution is a hard task. JustMock allows you to mock the behavior of members of class instances created at a future point in time, enabling you to isolate the tested code from such dependencies. This feature is especially handy when you mock third-party libraries, controls or tools where you have little to no control over how class instances are created.
By default, all mocks are tied to an instance and this is the expected behavior. With the IgnoreInstance expectation, you can specify that a particular arrangement should be applied to all instance of the type.