Fully featured to
Unit testing made simple
JustMock simplifies the process of writing unit tests 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 facilitates fast discovery of a feature and provides options only valid to the current context. JustMock comes with one fluent and easy-to-use API, whether mocking custom code or the MSCorLib. So you always work with the syntax you know and use most - the JustMock public API.
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. Testing legacy code is easier with fully profiled automocking which makes your tests less brittle. For more information read the Profiled Automocking with JustMock blog post.
Silverlight Elevated Mocking With Silverlight elevated mocking support, JustMock makes unit testing your Silverlight projects easier and faster than ever! You can mock everything in your Silverlight project including sealed classes, static classes, methods, properties, final methods or properties, and more. Whether you are supporting a legacy Silverlight project or creating a new one, JustMock’s got you covered!
Build Systems Integration JustMock works seamlessly in your continuous build configuration. Run JustMock on a build server to make sure that your tests pass every time you create a new build. JustMock is now compatible with TFS, CruiseControl.NET, Team City, Jenkins and other build servers. Take a look at our documentation for more details.
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.