Fully featured to
Unit testing made simple
JustMock simplifies the process of writing unit texts through isolation of dependencies and let you cover more codes with unit testing. Testing complex scenarios is now easier. By removing dependencies, JustMock lets you focus only on the logic you want to verify or assert.
JustMock supports VS 2012
JustMock integrates seamlessly with Visual Studio including VS 2012. Once installed, you will find the Telerik tools located in the VS toolbox and can start working with them right away. With JustMock Express, Visual Studio integration is not necessary.
Intuitive API with better discoverability
The API is intuitive – there is a short learning curve, so even beginners will be mocking in no time. JustMock’s fluent interface fascilitates fast discovery of a feature and provides options only valid to the current context.
As simple as A-A-A
JustMock conforms to the Arrange, Act, Assert (AAA) pattern. This simple pattern makes it easy 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). With AAA, there is always a single starting point and options are contextually valid.
Dual architecture to mock anything
JustMock takes mocking a step further than other tools allowing you to mock sealed classes, non-virtual methods and properties, static classes, static methods and properties, etc., even those coming from the mscorlib assembly.
Non-public members / types mocking
JustMock helps you mock/isolate non-public members and types. That is useful when you want to isolate calls to non-public members. This operation is currently not available in most of the other mocking frameworks.
JustMock allows you to fake static method/property calls, set expectations and verify results using the AAA principle. Whether you mock static or instance calls there isn't much difference in the way you organize and write your tests.
Supports mocking of properties
- Mocking get calls
- Mocking indexers
- Mocking a particular set operation
Easy and flexible 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. For advanced scenarios, such as mocking static or sealed classes, the necessary Visual Studio integration tools are easily set up for JustMock.
This intelligent feature makes managing mock dependencies easy and effortless. Automocking helps the process by creating an instance of a class (the system under test) without having to explicitly create each individual dependency as a unique mock. For more information read our Automocking with JustMock blog post.
Seamless VS integration
JustMock integrates seamlessly with Visual Studio and other tools such as Nunit, MSTest and Xunit along with test runners like TestDriven.Net and the JustCode test runner.