# FakeItEasy/FakeItEasy

The easy mocking library for .NET

Repository: https://github.com/FakeItEasy/FakeItEasy
Canonical: https://ross.abutalabs.com/products/fakeiteasy
Homepage: https://fakeiteasy.github.io
Language: C#
License: MIT
License Family: permissive
Topics: mocking, fake-objects, dotnet, dotnet-core, hacktoberfest
Last push: 2026-08-17T08:46:51+00:00

## Health v2 (maintenance only)
Score: 88/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 67, longevity 100
- inputs: {"age_days": 5554, "days_push": 16, "days_rel": 221, "gap_med": 15, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1847, forks 182 (observed 2026-08-28T04:05:43.536461+00:00)

## What it is
FakeItEasy is a .NET dynamic fake library for creating fake objects, mocks, and stubs in tests. It provides a fluent, context-aware API where all fakes behave as mocks or stubs depending on usage, with identical syntax for configuration and assertion.

## Use cases
- create mock objects for unit tests in .NET
- stub dependencies in C# tests
- verify method calls happened in tests
- fake interfaces and classes for test isolation
- replace Moq with an easier mocking library
- raise events from faked objects in tests

## When to choose
- you want a simple, fluent mocking API for C# or VB.NET
- you prefer fakes over explicit mock/stub distinctions
- you need type-safe faking of classes with constructor arguments

## When to avoid
- you're not developing on the .NET platform
- you need mocking features outside unit testing
- you're locked into an existing mocking framework's API

## Facets
- artifact type: library
- maturity: active
- function: mocking, testing
- domain: testing, developer-tools
- platform: dotnet, cross-platform
- tags: fake-objects, fluent-api, csharp, vb-net, unit-testing, test-doubles

## Member repositories
- FakeItEasy/FakeItEasy (main) score 88

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:43.536461+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:17:49.751447+00:00, confidence not recorded.
  - readme: https://github.com/FakeItEasy/FakeItEasy (fetched 2026-08-28T04:05:43.536461+00:00, sha d7efacf887fb)
  - homepage: https://fakeiteasy.github.io (fetched 2026-08-29T10:56:27.841344+00:00, sha 9ac67533266a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
