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 67 01/30/2026
9.0.0 69 01/12/2026
8.3.0 64 12/12/2025
8.2.0 72 12/14/2025
8.1.0 60 12/14/2025
8.0.1 63 12/12/2025
8.0.0 57 12/14/2025
8.0.0-alpha.1.10 67 12/14/2025
8.0.0-alpha.1 52 01/01/2026
7.4.0 73 12/12/2025
7.3.1 55 12/11/2025
7.3.0 47 12/14/2025
7.2.0 55 12/14/2025
7.1.0 57 12/12/2025
7.0.2 61 12/14/2025
7.0.1 57 12/11/2025
7.0.0 16 10/07/2026
6.2.1 60 12/11/2025
6.2.0 54 12/12/2025
6.1.0 46 12/14/2025
6.0.1 62 12/14/2025
6.0.0 58 12/12/2025
5.5.0 71 12/14/2025
5.4.1 68 12/14/2025
5.4.0 65 12/14/2025
5.3.0 17 09/28/2026
5.2.0 55 12/13/2025
5.1.2 52 12/14/2025
5.1.1 70 12/14/2025
5.1.0 64 12/13/2025
5.0.1 58 12/14/2025
5.0.0 16 10/10/2026
4.9.2 60 12/14/2025
4.9.1 65 12/14/2025
4.9.0 77 12/14/2025
4.8.1 59 12/14/2025
4.8.0 64 12/14/2025
4.7.1 64 12/14/2025
4.7.0 54 12/14/2025
4.6.0 58 12/14/2025
4.5.1 61 12/13/2025
4.5.0 57 12/14/2025
4.4.0 60 12/14/2025
4.3.0 75 12/14/2025
4.2.0 53 12/14/2025
4.1.1 64 12/14/2025
4.1.0 61 12/14/2025
4.0.0 60 12/13/2025
3.4.2 60 12/14/2025
3.4.1 76 12/14/2025
3.3.2 64 12/12/2025
3.3.1 57 12/13/2025
3.3.0 59 12/14/2025
3.2.0 60 12/14/2025
3.1.0 57 12/11/2025
3.0.0 60 12/12/2025
2.3.3 50 12/14/2025
2.3.2 58 12/14/2025
2.3.1 62 12/13/2025
2.3.0 59 12/12/2025
2.2.0 54 12/13/2025
2.1.0 68 12/12/2025
2.0.0 57 12/13/2025
1.25.3 60 12/14/2025
1.24.0 62 12/14/2025
1.23.0 59 12/14/2025
1.22.0 75 12/12/2025
1.21.0 66 12/15/2025
1.20.0 60 12/14/2025
1.19.0 52 12/14/2025
1.18.0 63 12/12/2025
1.17.0 65 12/13/2025
1.16.0 57 12/12/2025
1.15.0 64 12/12/2025
1.14.0 13 10/02/2026
1.13.1 54 12/14/2025
1.12.0 60 12/13/2025
1.11.0 61 12/14/2025
1.10.0 71 12/14/2025
1.9.1 65 12/12/2025
1.8.0 17 10/11/2026
1.7.4626.65 60 12/13/2025
1.7.4582.63 43 12/14/2025
1.7.4574.62 53 12/14/2025
1.7.4507.61 17 10/01/2026
1.7.4257.42 53 12/12/2025
1.7.4166.27 53 12/14/2025
1.7.4117.2 51 12/14/2025
1.7.4109.1 48 12/13/2025
1.6.4075.221 62 12/12/2025
1.6.4062.205 58 12/11/2025
1.5.3970.199 62 12/12/2025
1.0.0.5 55 12/12/2025