Solhigson.Testing 10.4.0

dotnet add package Solhigson.Testing --version 10.4.0
                    
NuGet\Install-Package Solhigson.Testing -Version 10.4.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="Solhigson.Testing" Version="10.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Solhigson.Testing" Version="10.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Solhigson.Testing" />
                    
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 Solhigson.Testing --version 10.4.0
                    
#r "nuget: Solhigson.Testing, 10.4.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 Solhigson.Testing@10.4.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=Solhigson.Testing&version=10.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Solhigson.Testing&version=10.4.0
                    
Install as a Cake Tool

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 KitOverrideCensus helper (an app's stylesheet checked against the admin kit's kit.manifest.json), 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 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
10.4.0 105 11/29/2026
10.3.0 619 11/11/2026
10.2.0 210 11/7/2026
10.1.0 105 11/4/2026
10.0.0 102 11/4/2026

10.4.0: KitOverrideCensus, a helper that checks an app's stylesheet against the admin kit's kit.manifest.json, so a test fails on an override of a name the kit no longer lists. KitOverrideCensus.Read(css, manifestJson) takes the two texts. It reports Overrides: each --kit- custom property set (an @property registration included) and each kit- class in a selector or an @scope prelude, with its line and whether an @layer block is around it. CSS nesting is followed and escapes are undone. It reports Findings, each with its line. NotInManifest is an override of a name the manifest does not list. Unlayered is an override outside every @layer block, listed or not. ReadNotInManifest is a var() in a declaration's value reading a --kit- name the manifest does not list. KitOverrideCensus.AssertNone(css, manifestJson) fails the calling test when there is any finding, naming each one. Limits: a listed name in any @layer block passes, reset included, though the kit's layers rank above reset. The stylesheet is read alone. An @import is not followed, nor is a layer that an importer puts the sheet in. The conditions of @supports, @media and @container are not read. Element, id and attribute selectors are not overrides, and markup is not read. An old <!-- or --> before a top-level @property hides the token it registers. A legacy <!-- before a top-level @layer block makes that layer's overrides read as Unlayered. A closing --> at the end of a sheet throws FormatException. A stylesheet with a stray brace, an unclosed block, bracket, string, comment or url(), a declaration outside a rule or an @scope, or blocks nested more than 128 deep throws FormatException. So does a manifest without its globalTokens, componentTokens or classes list, and a manifest that is not JSON throws JsonException. It is a helper, not a census: a consumer's own test calls it, no class inherits it and the census of censuses does not ask for it. No dependency changes. 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).