DomainCentric.ArchRules.Xunit
0.6.0
dotnet add package DomainCentric.ArchRules.Xunit --version 0.6.0
NuGet\Install-Package DomainCentric.ArchRules.Xunit -Version 0.6.0
<PackageReference Include="DomainCentric.ArchRules.Xunit" Version="0.6.0" />
<PackageVersion Include="DomainCentric.ArchRules.Xunit" Version="0.6.0" />
<PackageReference Include="DomainCentric.ArchRules.Xunit" />
paket add DomainCentric.ArchRules.Xunit --version 0.6.0
#r "nuget: DomainCentric.ArchRules.Xunit, 0.6.0"
#:package DomainCentric.ArchRules.Xunit@0.6.0
#addin nuget:?package=DomainCentric.ArchRules.Xunit&version=0.6.0
#tool nuget:?package=DomainCentric.ArchRules.Xunit&version=0.6.0
DomainCentric.ArchRules.Xunit
xUnit base class that runs the whole DomainCentric.ArchRules catalog as one theory case per rule.
public sealed class ArchitectureTest : DcaArchitectureTest
{
protected override DcaLayout Layout => DcaLayout.ForRootNamespace("Acme.Shop");
protected override IEnumerable<Assembly> Assemblies => new[] { typeof(Program).Assembly };
}
Requires xUnit v2
This package builds on xunit.core 2.x. On an xUnit v3 project it restores and compiles without a
warning and then contributes no test at all: dotnet test exits 0, no architecture rule runs, and the
build is green while nothing was checked. The package therefore refuses that combination with build
error DCA0001.
On xUnit v3, reference DomainCentric.ArchRules alone and run the catalog from a test of your own:
[Fact]
public void ArchitectureRulesHold()
{
var layout = DcaLayout.ForRootNamespace("Acme.Shop");
var architecture = DcaArchitecture.Load(layout, typeof(ArchitectureTests).Assembly);
DcaRules.CheckAll(architecture, DcaRuleSelection.All());
}
Full documentation: https://github.com/domain-centric-development/dca-dotnet
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- DomainCentric.ArchRules (>= 0.6.0)
- xunit.core (>= 2.9.3)
-
net8.0
- DomainCentric.ArchRules (>= 0.6.0)
- xunit.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.