Popularity
7.0
Growing
Activity
8.0
-
1,612
51
181

Code Quality Rank: L4
Programming language: C#
License: MIT License
Tags: TDD     Unittesting     Mocks     Mocking     Fakes     Faking     Stubs     Stubbing     Spy     Spies     Doubles     Isolation     Substitutes     Substitution    
Latest version: v6.2.1

FakeItEasy alternatives and similar packages

Based on the "Testing" category.
Alternatively, view FakeItEasy alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of FakeItEasy or a related project?

Add another 'Testing' Package

README

NuGet version Build status

A .NET dynamic fake library for creating all types of fake objects, mocks, stubs etc.

  • Easier semantics, all fake objects are just that - fakes - the use of the fakes determines whether they're mocks or stubs.
  • Context-aware fluent interface guides the developer.
  • Designed for ease of use.
  • Full compatibility with both C# and VB.Net.

Faking amazing example

// Creating a fake object is very easy!
// No mocks, or stubs; everything's a fake.
var shop = A.Fake<ICandyShop>();

// Easily set up a call to return a value.
var lollipop = new Lollipop();
A.CallTo(() => shop.GetTopSellingCandy()).Returns(lollipop);

// Exercise your system under test by using the fake as you
// would an instance of the faked type.
var customer = new SweetTooth();
customer.BuyTastiestCandy(shop);

// Asserting uses the same syntax as configuring calls.
A.CallTo(() => shop.BuyCandy(lollipop)).MustHaveHappened();

Resources


FakeItEasy logo designed by Vanja Pakaski.