Solhigson.Testing
10.3.0
dotnet add package Solhigson.Testing --version 10.3.0
NuGet\Install-Package Solhigson.Testing -Version 10.3.0
<PackageReference Include="Solhigson.Testing" Version="10.3.0" />
<PackageVersion Include="Solhigson.Testing" Version="10.3.0" />
<PackageReference Include="Solhigson.Testing" />
paket add Solhigson.Testing --version 10.3.0
#r "nuget: Solhigson.Testing, 10.3.0"
#:package Solhigson.Testing@10.3.0
#addin nuget:?package=Solhigson.Testing&version=10.3.0
#tool nuget:?package=Solhigson.Testing&version=10.3.0
Test-only support for Solhigson projects: the census base, the census of censuses, the async test base, the build-rules census (the language version, the SDK pin and the Solhigson.Analyzers rules, read from the package root its build targets write into the test assembly, skipping a dotnet new template's .template.config source), the Roslyn C# source helper, the markup scans, the personal-data census PersonalDataCensusTests, the settings-file census SettingsFileCensusTests (every appsettings*.json leaf git lists is a startup section's or a key the app's [SettingsGroup] types declare), and the Tier=<engine> database test pool (DatabaseTestBase, IDatabaseProvisioner, PostgresProvisioner over Testcontainers) with its tier-trait census DatabaseTierCensusTests.
| 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.CodeAnalysis.CSharp (>= 4.14.0)
- Npgsql (>= 10.0.3)
- SSH.NET (>= 2026.0.0)
- Testcontainers.PostgreSql (>= 4.12.0)
- xunit.assert (>= 2.9.3)
- xunit.extensibility.core (>= 2.9.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
10.3.0: SettingsFileCensusTests, the settings-file census (rule SETTINGS-FILE-KEY): every leaf of every appsettings*.json git lists is a startup section's leaf (ConnectionStrings, RootEncryption, Kestrel, AllowedHosts, Logging, NLog, Solhigson) holding no secret or credential, or a key a [SettingsGroup] type declares, a Startup key holding no credential or an empty File key, never a Secret; a comment carrying a credential fails too. Groups are found by metadata name across the output folder's assemblies, never constructed. A consumer inherits it once (explicit base call); the census of censuses fails until it does. 10.2.0: the Tier=<engine> database test pool: DatabaseTestBase<TProvisioner> (one process-wide pool per IDatabaseProvisioner type, the worker count plus Spares databases cloned once from a template, borrowed in a sealed SetUpAsync with a 60 s bound and returned to two dedicated reset threads, a database whose reset throws retired for a fresh clone) and PostgresProvisioner (one Testcontainers container per provisioner type per process on 127.0.0.1 with a random password, a template marked IS_TEMPLATE, a reset by one batched DELETE under session_replication_role replica); a borrowing class carries [Trait("Tier", engine)], and the tier fails without Docker or with Testcontainers' reaper off, never skipping. DatabaseTierCensusTests (rule TIER-TRAIT: every public concrete DatabaseTestBase subclass carries a Tier trait). PersonalDataCensusTests (rule PERSONALDATA-UNMARKED: an entity or DTO property or positional record parameter whose whole PascalCase words name personal data carries [PersonalData]). BuildRulesCensusTests skips a dotnet new template's .template.config source. New dependencies: Testcontainers.PostgreSql 4.12.0, Npgsql 10.0.3, SSH.NET 2026.0.0. A consumer inherits each new census once (explicit base call). 10.1.0: BuildRulesCensusTests, the build-rules census of design K (LangVersion only in a Roslyn component, a root global.json with rollForward latestPatch, the Solhigson.Analyzers switches and reference, .editorconfig lowerings dated by a solhigson-exception comment), reading the packaged rules from SolhigsonAnalyzersRoot, which this package's build and buildTransitive targets write into the test assembly; a consumer inherits it once (explicit base call) and references Solhigson.Analyzers. 10.0.0: first release. CensusTests and CensusRuleAttribute (a census reports its flagged subjects per rule id and the base applies the project's dated solhigson-exceptions.txt), CensusOfCensusesTests (every abstract census of this package inherited exactly once, every exceptions line's rule id declared), AsyncLifetimeTestBase (set-up and a once-only tear-down over xunit v2's IAsyncLifetime), CSharpSource (the consumer repository's .cs files parsed once each through Roslyn, with their invocations and declarations), MarkupScan (a tag's closing '>', a view's inline script body and a form's posted names, over Razor and HTML).