FakeItEasy 8.3.0

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
- Website
- Quickstart
- Documentation
- Chat
- NuGet packages on NuGet.org, targeting:
- .NET Framework 4.6.2
- .NET Standard 2.0
- .NET Standard 2.1
- .NET 6.0
FakeItEasy logo designed by Vanja Pakaski.
No packages depend on FakeItEasy.
https://github.com/FakeItEasy/FakeItEasy/releases
.NET Framework 4.6.2
- Castle.Core (>= 5.1.1)
.NET 6.0
- Castle.Core (>= 5.1.1)
.NET 8.0
- Castle.Core (>= 5.1.1)
.NET Standard 2.0
- Castle.Core (>= 5.1.1)
.NET Standard 2.1
- Castle.Core (>= 5.1.1)
| Version | Downloads | Last updated |
|---|---|---|
| 8.3.0 | 26 | 11/27/2024 |
| 8.2.0 | 29 | 05/01/2024 |
| 8.1.0 | 25 | 05/20/2024 |
| 8.0.1 | 22 | 05/28/2024 |
| 8.0.0 | 26 | 05/28/2024 |
| 7.4.0 | 31 | 05/28/2024 |
| 7.3.1 | 26 | 01/04/2024 |
| 7.3.0 | 25 | 05/28/2024 |
| 7.2.0 | 24 | 05/28/2024 |
| 7.1.0 | 26 | 05/28/2024 |
| 7.0.2 | 32 | 05/28/2024 |
| 7.0.1 | 27 | 05/28/2024 |
| 7.0.0 | 27 | 05/28/2024 |
| 6.2.1 | 31 | 05/16/2023 |
| 6.2.0 | 23 | 05/28/2024 |
| 6.1.0 | 27 | 05/15/2024 |
| 6.0.1 | 25 | 05/28/2024 |
| 6.0.0 | 27 | 05/15/2024 |
| 5.5.0 | 25 | 05/28/2024 |
| 5.4.1 | 29 | 05/28/2024 |
| 5.4.0 | 23 | 05/28/2024 |
| 5.3.0 | 27 | 05/28/2024 |
| 5.2.0 | 28 | 05/15/2024 |
| 5.1.2 | 26 | 05/15/2024 |
| 5.1.1 | 23 | 05/15/2024 |
| 5.1.0 | 26 | 05/15/2024 |
| 5.0.1 | 29 | 05/15/2024 |
| 5.0.0 | 26 | 05/28/2024 |
| 4.9.2 | 25 | 05/28/2024 |
| 4.9.1 | 26 | 05/15/2024 |
| 4.9.0 | 28 | 05/28/2024 |
| 4.8.1 | 28 | 05/20/2024 |
| 4.8.0 | 27 | 05/28/2024 |
| 4.7.1 | 29 | 05/28/2024 |
| 4.7.0 | 23 | 05/15/2024 |
| 4.6.0 | 25 | 05/28/2024 |
| 4.5.1 | 47 | 03/06/2023 |
| 4.5.0 | 27 | 05/28/2024 |
| 4.4.0 | 26 | 05/28/2024 |
| 4.3.0 | 27 | 05/28/2024 |
| 4.2.0 | 31 | 05/28/2024 |
| 4.1.1 | 25 | 05/28/2024 |
| 4.1.0 | 26 | 05/28/2024 |
| 4.0.0 | 28 | 05/28/2024 |
| 3.4.2 | 24 | 05/28/2024 |
| 3.4.1 | 30 | 05/28/2024 |
| 3.3.2 | 25 | 05/28/2024 |
| 3.3.1 | 27 | 05/28/2024 |
| 3.3.0 | 29 | 05/28/2024 |
| 3.2.0 | 30 | 05/15/2024 |
| 3.1.0 | 23 | 05/28/2024 |
| 3.0.0 | 30 | 05/28/2024 |
| 2.3.3 | 26 | 05/28/2024 |
| 2.3.2 | 29 | 05/28/2024 |
| 2.3.1 | 29 | 05/28/2024 |
| 2.3.0 | 25 | 05/28/2024 |
| 2.2.0 | 28 | 05/15/2024 |
| 2.1.0 | 29 | 05/15/2024 |
| 2.0.0 | 27 | 05/28/2024 |
| 1.25.3 | 24 | 05/28/2024 |
| 1.24.0 | 32 | 05/15/2024 |
| 1.23.0 | 20 | 05/28/2024 |
| 1.22.0 | 27 | 05/28/2024 |
| 1.21.0 | 24 | 05/28/2024 |
| 1.20.0 | 26 | 05/28/2024 |
| 1.19.0 | 26 | 05/28/2024 |
| 1.18.0 | 25 | 05/15/2024 |
| 1.17.0 | 25 | 05/28/2024 |
| 1.16.0 | 29 | 05/28/2024 |
| 1.15.0 | 28 | 05/28/2024 |
| 1.14.0 | 29 | 05/28/2024 |
| 1.13.1 | 29 | 05/28/2024 |
| 1.12.0 | 31 | 05/28/2024 |
| 1.11.0 | 25 | 05/28/2024 |
| 1.10.0 | 20 | 05/28/2024 |
| 1.9.1 | 31 | 05/28/2024 |
| 1.8.0 | 25 | 05/28/2024 |
| 1.7.4626.65 | 28 | 05/15/2024 |
| 1.7.4582.63 | 26 | 05/28/2024 |
| 1.7.4574.62 | 22 | 05/28/2024 |
| 1.7.4507.61 | 25 | 05/28/2024 |
| 1.7.4257.42 | 27 | 05/15/2024 |
| 1.7.4166.27 | 28 | 05/28/2024 |
| 1.7.4117.2 | 22 | 05/20/2024 |
| 1.7.4109.1 | 25 | 05/28/2024 |
| 1.6.4075.221 | 31 | 05/28/2024 |
| 1.6.4062.205 | 23 | 05/28/2024 |
| 1.5.3970.199 | 22 | 05/28/2024 |
| 1.0.0.5 | 24 | 05/28/2024 |