Skip to main content
Open-source testing libraries for .NET

Tests that read like the sentence you had in mind.

Mock the file system and the clock, fake any dependency without reflection, and get failure messages that explain themselves. Three libraries, each useful on its own, better together.

Free and open source under the MIT license.

One test, three libraries

A service that exports a report to disk and notifies the team. No temp folder, no hand-written fake, no guessing what failed.

[Test]public async Task Export_WritesReportAndNotifiesTeam(){    MockFileSystem fileSystem = new();← Testably.Abstractions    INotifier notifier = INotifier.CreateMock();← Mockolate    ReportService sut = new(fileSystem, notifier);     await sut.ExportAsync("Q3");     await That(fileSystem).HasFile("reports/Q3.json");← aweXpect.Testably    await That(notifier.Mock.Verify.Send("Report Q3 exported")).Once();← aweXpect.Mockolate}

MockFileSystem behaves like the real one on Windows, Linux and macOS, all in memory.

CreateMock() is source-generated: a typo in a setup is a compile error.

HasFile(…) reads as a sentence and names the missing path when it fails.

aweXpect extensions

aweXpect.Jsonv4.0.0

Compare JSON by its structure instead of its formatting, and check single properties of JsonElement and JsonNode.

await That(json).IsEqualTo(expected).AsJson();
await That(json).IsValidJsonMatching(new { title = "Let It Be" });
Read the aweXpect.Json docs →

Testably and Mockolate bridge the family: assertions on a MockFileSystem and on Mockolate interactions.

Writing durations? aweXpect.Chronology turns 5.Seconds() and 24.December(2024) into TimeSpan and DateTime values, no aweXpect needed.