From f29255a45ceb3a013a6397c0365021d700916559 Mon Sep 17 00:00:00 2001 From: Erik Date: Sun, 5 Jul 2026 21:11:12 +0200 Subject: [PATCH] test(pipeline): MP1b - AcDream.Content.Tests scaffold New xunit test project for the Content layer (rule 6: tests live in the project matching the layer under test). ProjectReference to AcDream.Content; TreatWarningsAsErrors + LangVersion latest per MP1b's csproj requirements. Registered in AcDream.slnx. Placeholder PakKeyTests smoke test becomes the real Task 2 suite next. --- AcDream.slnx | 1 + .../AcDream.Content.Tests.csproj | 27 +++++++++++++++++++ tests/AcDream.Content.Tests/PakKeyTests.cs | 14 ++++++++++ 3 files changed, 42 insertions(+) create mode 100644 tests/AcDream.Content.Tests/AcDream.Content.Tests.csproj create mode 100644 tests/AcDream.Content.Tests/PakKeyTests.cs diff --git a/AcDream.slnx b/AcDream.slnx index ad4ee840..8f761598 100644 --- a/AcDream.slnx +++ b/AcDream.slnx @@ -15,6 +15,7 @@ + diff --git a/tests/AcDream.Content.Tests/AcDream.Content.Tests.csproj b/tests/AcDream.Content.Tests/AcDream.Content.Tests.csproj new file mode 100644 index 00000000..fd037caf --- /dev/null +++ b/tests/AcDream.Content.Tests/AcDream.Content.Tests.csproj @@ -0,0 +1,27 @@ + + + + net10.0 + enable + enable + false + latest + true + + + + + + + + + + + + + + + + + + diff --git a/tests/AcDream.Content.Tests/PakKeyTests.cs b/tests/AcDream.Content.Tests/PakKeyTests.cs new file mode 100644 index 00000000..8b6b5bfa --- /dev/null +++ b/tests/AcDream.Content.Tests/PakKeyTests.cs @@ -0,0 +1,14 @@ +namespace AcDream.Content.Tests; + +/// +/// Task 1 scaffold smoke test — becomes the real PakKey test suite in Task 2. +/// +public class PakKeyTests { + [Fact] + public void Smoke_ProjectReferencesContentAssembly() { + // Any type from AcDream.Content resolves — proves the ProjectReference + // and test-project wiring are correct before Task 2 adds real coverage. + var key = new TextureKey(); + Assert.Equal(0u, key.SurfaceId); + } +}