Moq (pronounced "Mock-you" or just "Mock") is the only mocking library for .NET developed from scratch to take full advantage of .NET lambda expressions that make it the most productive, type-safe and refactoring-friendly mocking library available. And it supports mocking interfaces as well as
... [More] classes. Its API is extremely simple and straightforward, and doesn't require any prior knowledge or experience with mocking concepts. [Less]
Spock is a testing and specification framework for Java and Groovy developers. What makes it stand out from the crowd is its beautiful and highly expressive specification language. Thanks to its JUnit runner, Spock is compatible with most IDEs, build tools, and continuous integration servers. Spock
... [More] is inspired from JUnit, jMock, RSpec, Groovy, Scala, Vulcans, and other fascinating life forms. [Less]
PowerMock allows you to unit test code normally regarded as untestable. For instance it is possible to mock static methods, remove static initializers, allow mocking without dependency injection and more.
JMockit allows developers to write unit and integration tests without the testability issues typically found with other mocking APIs.
Most importantly, with JMockit all programming practices, patterns, and styles are supported equally, without forcing developers to make compromises just for the sake of unit testing.
NSubstitute is a friendly substitute for .NET mocking frameworks.
It's like a stub with property behaviour.
With nice semantics for setting return values.
It only has one mode - loose semantics, which you can query afterwards.
It's meant to be simple, succinct and pleasant to use.
A unit testing framework for C with mocking. cmocka only requires a test application is linked with the standard C library which minimizes conflicts with standard C library headers. It is the successor (fork) of cmockery.
This site uses cookies to give you the best possible experience.
By using the site, you consent to our use of cookies.
For more information, please see our
Privacy Policy