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.
This commit is contained in:
parent
b9ceafd4fd
commit
f29255a45c
3 changed files with 42 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
</Folder>
|
</Folder>
|
||||||
<Folder Name="/tests/">
|
<Folder Name="/tests/">
|
||||||
<Project Path="tests/AcDream.App.Tests/AcDream.App.Tests.csproj" />
|
<Project Path="tests/AcDream.App.Tests/AcDream.App.Tests.csproj" />
|
||||||
|
<Project Path="tests/AcDream.Content.Tests/AcDream.Content.Tests.csproj" />
|
||||||
<Project Path="tests/AcDream.Core.Tests.Fixtures.HelloPlugin/AcDream.Core.Tests.Fixtures.HelloPlugin.csproj" />
|
<Project Path="tests/AcDream.Core.Tests.Fixtures.HelloPlugin/AcDream.Core.Tests.Fixtures.HelloPlugin.csproj" />
|
||||||
<Project Path="tests/AcDream.Core.Tests/AcDream.Core.Tests.csproj" />
|
<Project Path="tests/AcDream.Core.Tests/AcDream.Core.Tests.csproj" />
|
||||||
<Project Path="tests/AcDream.Core.Net.Tests/AcDream.Core.Net.Tests.csproj" />
|
<Project Path="tests/AcDream.Core.Net.Tests/AcDream.Core.Net.Tests.csproj" />
|
||||||
|
|
|
||||||
27
tests/AcDream.Content.Tests/AcDream.Content.Tests.csproj
Normal file
27
tests/AcDream.Content.Tests/AcDream.Content.Tests.csproj
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<IsPackable>false</IsPackable>
|
||||||
|
<LangVersion>latest</LangVersion>
|
||||||
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="coverlet.collector" Version="6.0.4" />
|
||||||
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
|
||||||
|
<PackageReference Include="xunit" Version="2.9.3" />
|
||||||
|
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Using Include="Xunit" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\..\src\AcDream.Content\AcDream.Content.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
14
tests/AcDream.Content.Tests/PakKeyTests.cs
Normal file
14
tests/AcDream.Content.Tests/PakKeyTests.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
namespace AcDream.Content.Tests;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Task 1 scaffold smoke test — becomes the real PakKey test suite in Task 2.
|
||||||
|
/// </summary>
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue