Product Variants
Other product variants may be available, please contact us or
request a call back
if you cannot see what you are looking for.
Product Information
JustMock is a new developer productivity tool designed to make it easy to create unit tests. JustMock cuts your development time and helps you create better unit tests without requiring you to change your code. It allows you to perform fast and controlled tests that mock external dependencies like databases, web services, or proprietary code. With JustMock, there are also no limits to what you can mock! You can fake non-virtual methods, sealed classes, and static methods and classes.
New Features
New in Q1'12
- One stop TFS deployment - the JustMock code activity workflow is designed to deploy your JustMock test projects to TFS 2010 with zero manual configurations for setting up your build environment.
- Ship JustMockRunner.exe together with the build of JustMock - JustMockRunner.exe is useful if you want to run JustMock outside of Visual Studio and integrate with non-MSTest environments.
- Auto arrange virtual properties - during object initialisation set from constructor argument.
New in Q3'11
- Support for fluent assertions - JustMock dynamically checks for any assertion mechanism provided by the underlying test framework if such one is available (MSTest, XUnit, NUnit, MbUnit, Silverlight) and uses it, rather than using its own MockAssertionException
- Support for mocking Static constructor - users can specify behavior of the static constructor when the target type is mocked in Mock.SetupStatic for target type
- Support for IgnoreArgument switch in Mock.Asset - allows you to ignore all arguments by using Args.Ignore() rather than using Arg.IsAny{T} for each parameter
- Mocking methods where Expression> are passed in as parameters - users are able to mock setups that pass Expression> as parameter
- Ability to ignore instance for an expectation explicitly - users can ignore instance for an expectation explicitly.
New in Q2'11
- Support for asserting order in which the mocked calls are invoked - this feature allows for asserting the order of execution for arranged calls. This test not only asserts that the calls are made properly, but also ensures that they are invoked in the correct order.
- Mocking queries with Join operator - this feature extends LINQ mocking by adding support for Join operators.
- Ability to mock private method through interface specifier - now you can mock an explicit interface implementation (Not public) from current or base class.
- New additions to fluent extensions - developers can assert specific call along with foo.Assert().
Features
Superior Unit Testing
With JustMock, you can test objects and behaviors in an isolated and controlled environment. You don’t have to rely on the availability of external resources like databases, web services, or proprietary code to perform your tests. This means that you can start testing your application immediately and cover more testing scenarios in less time.
Faster development times
The product will also allow you to detect bugs and errors earlier in your project’s life cycle and reduce the time needed for QA. This will significantly reduce your time to market and give you a head start.
Arrange, Act, Assert
JustMock embraces the Arrange, Act, Assert (AAA) pattern for creating unit test mockings. This simple pattern makes it easy for developers to quickly and naturally mock objects in unit tests. Mocking is as simple as configuring what should be mocked (Arrange), calling methods of properties of the object (Act), and checking the results of action against expected values (Assert).
Unobtrusive Mocking
JustMock is POCO-friendly. You don’t have to add any additional code to your classes or methods to make them mockable. You can directly reference them in the mock object, regardless of implementation. Just mock it.
Unlimited Capabilities
JustMock does not impose any restrictions on what you can mock. You can fake objects like non-virtual methods, sealed classes and static methods and classes, features often not available in free mocking frameworks. The tool also supports mocking all classes and methods included in the MSCORLIB assembly, like DateTime, FileInfo, etc.
Error-free Mocking
JustMock guarantees an error-free mocking experience throughout the testing process thanks to its strongly typed framework API. JustMock detects errors in your mock definitions and highlights them in Visual Studio. JustMock’s API also fully leverages Visual Studio IntelliSense to make it easy to start mocking.
Easy deployment
Mocking interfaces or virtual and abstract methods with JustMock is as easy as referencing a single assembly. For these basic scenarios, JustMock does not rely on code profiling and can be used by simply referencing the JustMock assembly, a much simpler option than many other mocking frameworks provide. For advanced scenarios, such as mocking static or sealed classes, we provide the necessary Visual Studio integration tools for setting up JustMock and enabling powerful code analysis.