Hegel for C#

The API reference of the Hegel and Hegel.Xunit NuGet packages: property-based testing for C#, driven by the Hegel engine.

dotnet add package Hegel
dotnet add package Hegel.Xunit
  • Hegel is the library: Property.Test runs a property written against a TestCase, Generators holds the generators, Settings configures a run and Stateful drives a state machine.
  • Hegel.Xunit adds [HegelTest], which makes a method taking a TestCase an xUnit v2 test.

The README is the guide. F# has its own package, Hegel.FSharp, and its own reference.