Precept.Core 0.2.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Precept.Core --version 0.2.0
                    
NuGet\Install-Package Precept.Core -Version 0.2.0
                    
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="Precept.Core" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Precept.Core" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Precept.Core" />
                    
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 Precept.Core --version 0.2.0
                    
#r "nuget: Precept.Core, 0.2.0"
                    
#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 Precept.Core@0.2.0
                    
#: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=Precept.Core&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Precept.Core&version=0.2.0
                    
Install as a Cake Tool

Precept.Core

Core abstractions for the Precept test automation framework: test attributes, the ambient test context, settings, outcome exceptions and the assertion engine.

dotnet add package Precept.Core

Most projects should not reference this directly. Install Precept.TestPlatform instead — it brings Precept.Core with it and adds the runner. Referencing Core on its own is for a library of shared step definitions or helpers that must not drag the runner in.

Everything a test sees lives in the root Precept namespace, so a step definition needs no extra using:

await Assert.That(order.Total).ToBeEqualAsync(42.00m);
await Assert.That(basket.Items).Not.ToBeEmptyAsync();

await Assert.Eventually(() => Db.ScalarAsync<long>("select count(*) from outbox where sent = 0"))
            .Within(TimeSpan.FromMinutes(2))
            .ToBeEqualAsync(0L);

Assertions are awaited, always — an assertion over a value in hand completes synchronously, but the same sentence has to cover an element that is not on the page yet, so waiting lives inside the assertion rather than in a sleep in front of it.


Part of Precept, a .NET 10 test automation framework. Full documentation: assertions · writing your own · configuration · dependency injection

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 (13)

Showing the top 5 NuGet packages that depend on Precept.Core:

Package Downloads
Precept.TestPlatform

Precept's test runner: a Microsoft.Testing.Platform test framework that owns discovery, filtering, parallel scheduling, retries, lifecycle hooks and reporting for Precept tests. A test project starts here.

Precept.Reqnroll

Optional Gherkin authoring for Precept: compiles Reqnroll feature files into Precept test classes and runs them on the Precept test runner.

Precept.TestData

Test data management for Precept: environment-specific data sets for users, clients, vehicles and anything else a suite needs, dynamic value generation, factories that create and clean up data in the system under test, and pooled data leased exclusively to parallel tests.

Precept.Data

Database testing for Precept. Provider-agnostic: works with any ADO.NET provider (SQL Server, PostgreSQL, MySQL, SQLite) supplied by the test project.

Precept.Api

HTTP API testing for Precept: a fluent request builder, response assertions, and automatic request/response logging into the test report.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.11.1 0 9/16/2026
0.11.0 29 9/15/2026
0.10.0 192 9/10/2026
0.8.0 179 9/10/2026
0.7.0 188 9/9/2026
0.6.0 201 9/2/2026
0.5.1 192 9/2/2026
0.5.0 196 9/1/2026
0.4.1 214 8/16/2026
0.4.0 208 8/16/2026
0.3.0 199 8/15/2026
0.2.0 198 8/15/2026
0.1.3 173 8/13/2026
0.1.2 172 8/13/2026
0.1.1 185 8/13/2026
0.1.0 173 8/12/2026