This package contains types for .NET applications to use to integrate with Antithesis.
- The
Assertclass enables defining test properties about your program or workload. - The
Lifecycleclass contains methods used to inform Antithesis that particular test phases or milestones have been reached. - The
Randomclass is a subclass ofSystem.Randomthat encapsulates Antithesis's deterministic and reproducible random number generator.
For general usage guidance see the Antithesis .NET SDK Documentation.
This .NET 6.0+ Antithesis.SDK package's only dependency is the Antithesis.SDK.SourceGenerators package. The Antithesis.SDK.SourceGenerators package contains a .NET Incremental Source Generator that adds a C# file to each Assembly that references it. The file contains a ModuleInitializer that calls Antithesis.SDK.Catalog for each Antithesis.SDK.Assert method call found during compilation. This informs Antithesis of every assertion regardless of whether or not the assertion is encountered during runtime.