Precept.Core
0.11.0
dotnet add package Precept.Core --version 0.11.0
NuGet\Install-Package Precept.Core -Version 0.11.0
<PackageReference Include="Precept.Core" Version="0.11.0" />
<PackageVersion Include="Precept.Core" Version="0.11.0" />
<PackageReference Include="Precept.Core" />
paket add Precept.Core --version 0.11.0
#r "nuget: Precept.Core, 0.11.0"
#:package Precept.Core@0.11.0
#addin nuget:?package=Precept.Core&version=0.11.0
#tool nuget:?package=Precept.Core&version=0.11.0
Precept.Core
The core of the Precept test 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 package directly. Install
Precept.TestPlatform instead. It brings Precept.Core with it
and adds the runner. Reference Core on its own only for a library of shared step definitions or
helpers that must not depend on the runner, or for a reporter of your own.
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);
Every assertion is awaited. An assertion over a value in hand completes at once, but the same sentence also covers an element that is not on the page yet and a job that finishes eventually, so the waiting lives inside the assertion rather than in a sleep in front of it.
Part of Precept, a .NET 10 test framework built on Microsoft.Testing.Platform. Full documentation: assertions · writing your own · configuration · dependency injection · writing a reporter
| Product | Versions 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. |
-
net10.0
- Microsoft.Extensions.Configuration (>= 10.0.12)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.12)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.12)
- Microsoft.Extensions.Configuration.Json (>= 10.0.12)
- Microsoft.Extensions.DependencyInjection (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
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.0 | 0 | 9/15/2026 |
| 0.10.0 | 186 | 9/10/2026 |
| 0.8.0 | 174 | 9/10/2026 |
| 0.7.0 | 184 | 9/9/2026 |
| 0.6.0 | 201 | 9/2/2026 |
| 0.5.1 | 192 | 9/2/2026 |
| 0.5.0 | 195 | 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 |