SharpNinja.aiUnit 0.1.0-preview.672

This is a prerelease version of SharpNinja.aiUnit.
There is a newer version of this package available.
See the version list below for details.
dotnet add package SharpNinja.aiUnit --version 0.1.0-preview.672
                    
NuGet\Install-Package SharpNinja.aiUnit -Version 0.1.0-preview.672
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SharpNinja.aiUnit" Version="0.1.0-preview.672" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpNinja.aiUnit" Version="0.1.0-preview.672" />
                    
Directory.Packages.props
<PackageReference Include="SharpNinja.aiUnit" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SharpNinja.aiUnit --version 0.1.0-preview.672
                    
#r "nuget: SharpNinja.aiUnit, 0.1.0-preview.672"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SharpNinja.aiUnit@0.1.0-preview.672
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SharpNinja.aiUnit&version=0.1.0-preview.672&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SharpNinja.aiUnit&version=0.1.0-preview.672&prerelease
                    
Install as a Cake Tool

SharpNinja.aiUnit

xUnit extension for AI frontier-model regression testing.

aiUnit provides:

  • HTTP frontier adapters for Anthropic Claude, OpenAI-compatible (OpenAI / xAI / MAF / Cline), and Google Gemini.
  • CLI strategies for claude --print and codex exec.
  • AiUnitStrategyResolver that reads appsettings.aiunit.json and resolves the active strategy with AIUNIT_* env-var overrides.
  • [AiFact] / [AiTheory] xUnit attributes that auto-skip when no strategy resolves (e.g. no API key + no CLI on PATH).
  • AiUnitJsonAssertions for validating model JSON output.

Status

Preview - this is the initial extraction from TruckMate. Phase 1 (foundation contracts) + Phase 2 (HTTP adapters) ship in 0.1.0-preview.1. Phase 3+ (strategy + xUnit attributes) follow.

License

MIT. See LICENSE.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.0.0 318 7/17/2026
2.1.3 216 7/7/2026
2.1.1 146 7/7/2026
2.1.0 151 7/7/2026
0.11.0 327 5/31/2026
0.10.0 151 5/29/2026
0.9.0 132 5/29/2026
0.5.0-beta.9 102 5/22/2026
0.5.0-beta.1 96 5/23/2026
0.1.0-preview.672 104 5/22/2026