FakeItEasy 9.0.1

Are you mocking me?

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.

No packages depend on FakeItEasy.

.NET Framework 4.6.2

.NET 8.0

.NET 10.0

Version Downloads Last updated
9.0.1 51 01/30/2026
9.0.0 56 01/12/2026
8.3.0 48 12/12/2025
8.2.0 59 12/14/2025
8.1.0 45 12/14/2025
8.0.1 51 12/12/2025
8.0.0 41 12/14/2025
8.0.0-alpha.1.10 45 12/14/2025
8.0.0-alpha.1 42 01/01/2026
7.4.0 56 12/12/2025
7.3.1 42 12/11/2025
7.3.0 33 12/14/2025
7.2.0 41 12/14/2025
7.1.0 45 12/12/2025
7.0.2 50 12/14/2025
7.0.1 46 12/11/2025
7.0.0 3 10/07/2026
6.2.1 45 12/11/2025
6.2.0 42 12/12/2025
6.1.0 37 12/14/2025
6.0.1 49 12/14/2025
6.0.0 47 12/12/2025
5.5.0 48 12/14/2025
5.4.1 50 12/14/2025
5.4.0 49 12/14/2025
5.3.0 3 09/28/2026
5.2.0 40 12/13/2025
5.1.2 38 12/14/2025
5.1.1 48 12/14/2025
5.1.0 51 12/13/2025
5.0.1 39 12/14/2025
5.0.0 2 10/10/2026
4.9.2 45 12/14/2025
4.9.1 47 12/14/2025
4.9.0 61 12/14/2025
4.8.1 41 12/14/2025
4.8.0 46 12/14/2025
4.7.1 45 12/14/2025
4.7.0 36 12/14/2025
4.6.0 45 12/14/2025
4.5.1 43 12/13/2025
4.5.0 42 12/14/2025
4.4.0 44 12/14/2025
4.3.0 57 12/14/2025
4.2.0 41 12/14/2025
4.1.1 48 12/14/2025
4.1.0 43 12/14/2025
4.0.0 50 12/13/2025
3.4.2 44 12/14/2025
3.4.1 58 12/14/2025
3.3.2 50 12/12/2025
3.3.1 43 12/13/2025
3.3.0 46 12/14/2025
3.2.0 44 12/14/2025
3.1.0 49 12/11/2025
3.0.0 49 12/12/2025
2.3.3 35 12/14/2025
2.3.2 47 12/14/2025
2.3.1 51 12/13/2025
2.3.0 45 12/12/2025
2.2.0 42 12/13/2025
2.1.0 53 12/12/2025
2.0.0 43 12/13/2025
1.25.3 46 12/14/2025
1.24.0 48 12/14/2025
1.23.0 45 12/14/2025
1.22.0 57 12/12/2025
1.21.0 42 12/15/2025
1.20.0 42 12/14/2025
1.19.0 37 12/14/2025
1.18.0 47 12/12/2025
1.17.0 51 12/13/2025
1.16.0 40 12/12/2025
1.15.0 52 12/12/2025
1.14.0 2 10/02/2026
1.13.1 42 12/14/2025
1.12.0 43 12/13/2025
1.11.0 47 12/14/2025
1.10.0 53 12/14/2025
1.9.1 43 12/12/2025
1.8.0 1 10/11/2026
1.7.4626.65 45 12/13/2025
1.7.4582.63 31 12/14/2025
1.7.4574.62 43 12/14/2025
1.7.4507.61 3 10/01/2026
1.7.4257.42 38 12/12/2025
1.7.4166.27 38 12/14/2025
1.7.4117.2 38 12/14/2025
1.7.4109.1 37 12/13/2025
1.6.4075.221 53 12/12/2025
1.6.4062.205 45 12/11/2025
1.5.3970.199 44 12/12/2025
1.0.0.5 44 12/12/2025