How to install Conjecture
Conjecture.NET requires .NET 10 or later.
Install the adapter package
Install the package for your test framework. Each adapter transitively references Conjecture.Core — you only need one package.
| Test framework | Package |
|---|---|
| xUnit v2 | Conjecture.Xunit |
| xUnit v3 | Conjecture.Xunit.V3 |
| NUnit 4 | Conjecture.NUnit |
| MSTest | Conjecture.MSTest |
Add using directives
All core types live in Conjecture.Core. The [Property] attribute and parameter resolution attributes come from the adapter namespace:
using Conjecture.Core; // Generate, Strategy<T>, Assume, ConjectureSettings, ...
using Conjecture.Xunit; // [Property], [Example], [From<T>], [FromFactory], ...
Analyzers and source generator
Roslyn analyzers and the [Arbitrary] source generator are bundled into Conjecture.Core and activate automatically — no additional packages needed.
Next
Quick Start — write and run your first property test in 5 minutes.