Pledge.Testing.Xunit
0.1.0-alpha.2
dotnet add package Pledge.Testing.Xunit --version 0.1.0-alpha.2
NuGet\Install-Package Pledge.Testing.Xunit -Version 0.1.0-alpha.2
<PackageReference Include="Pledge.Testing.Xunit" Version="0.1.0-alpha.2" />
<PackageVersion Include="Pledge.Testing.Xunit" Version="0.1.0-alpha.2" />
<PackageReference Include="Pledge.Testing.Xunit" />
paket add Pledge.Testing.Xunit --version 0.1.0-alpha.2
#r "nuget: Pledge.Testing.Xunit, 0.1.0-alpha.2"
#:package Pledge.Testing.Xunit@0.1.0-alpha.2
#addin nuget:?package=Pledge.Testing.Xunit&version=0.1.0-alpha.2&prerelease
#tool nuget:?package=Pledge.Testing.Xunit&version=0.1.0-alpha.2&prerelease
Pledge.Testing.Xunit
The xUnit.net v3 adapter for Pledge.Testing: one test per contracted member of a type, each run as a property test of its Pledge contracts.
Alpha. The API can still change between pre-releases.
dotnet add package Pledge.Testing.Xunit --prerelease
using PledgeContracts.Testing.Xunit;
[Theory, PledgedMembers(typeof(Account), Iterations = 1_000)]
public Task Account_pledges_hold(PledgeCase pledge) => pledge.CheckAsync();
Each member is its own test case, labelled with its signature, such as
Account.Withdraw(decimal). A member whose parameters cannot be generated, such as one taking a
Span<T>, is reported as skipped with the reason. Test output goes to the framework's output
for that test.
Support
Pledge is MIT-licensed and built in the open. If it saves you a bug or two, consider sponsoring its development.
Source and docs · Design · Issues · License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Pledge.Testing (>= 0.1.0-alpha.2)
- xunit.v3.extensibility.core (>= 4.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha.2 | 20 | 10/30/2026 |
| 0.1.0-alpha.1 | 28 | 10/30/2026 |