New TeslaConsole.BattleTech namespace mirroring TeslaConsole.RedPlanet's mission layer: BTMission/BTFreeForAllMission (egg serializer; RP wire framing and ordinal bitmaps reused verbatim), BTParticipant/BTPlayer/BTCamera (BT participant fields: advancedDamage, experience, vehicleValue, patch, role), and the BTConfig/BTScenario/BTMap/BTVehicle/BTWeather/BTRole catalog loaded from BattleTech\BTConfig.xml (reconstructed from the Mac Console 4.10 ini BT tree). Free For All and No Return share one mission class - both send scenario=freeforall; the mode is the role assigned to each pilot. BTGoldenEggTests (7 tests, recovered-only) diff the generated egg field-by-field against two eggs captured from the original consoles (cavern.egg, TESTARN.EGG): order-independent per-section compare with font-rendered bitmap pixel rows excluded, ordinal art byte-exact vs TESTARN.EGG, EggFileMessage framing reassembly, role de-dup, No Return role semantics, and shipped-catalog contents. Invoker gains BTEggString/ BTEggFraming reflection cases. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
59 lines
2.6 KiB
XML
59 lines
2.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<!--
|
|
Differential test suite: verifies the reconstructed TeslaConsole.exe behaves
|
|
identically to the original (reference baseline in ../../original).
|
|
|
|
Targets net48 on purpose: the comparison loads BOTH assemblies (which share
|
|
the exact same assembly identity, TeslaConsole 4.11.3.37076) into separate
|
|
AppDomains, which only the .NET Framework runtime supports.
|
|
-->
|
|
<PropertyGroup>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<LangVersion>latest</LangVersion>
|
|
<Nullable>disable</Nullable>
|
|
<ImplicitUsings>disable</ImplicitUsings>
|
|
<IsPackable>false</IsPackable>
|
|
<AssemblyName>TeslaConsole.DiffTests</AssemblyName>
|
|
<RootNamespace>TeslaConsole.DiffTests</RootNamespace>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- net48 reference assemblies so this builds without a full targeting pack installed -->
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="all" />
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
|
|
<PackageReference Include="xunit" Version="2.6.6" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Reference Include="System.Drawing" />
|
|
<Reference Include="System.Xml" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- BattleTech golden eggs captured from the original consoles (see BTGoldenEggTests). -->
|
|
<Content Include="BattleTech\*.egg" CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!--
|
|
Build the reconstruction before the tests so we always compare against a fresh
|
|
build. ReferenceOutputAssembly=false: we load it by path via reflection, and
|
|
copying it next to the tests would collide with the original's identical identity.
|
|
-->
|
|
<ProjectReference Include="..\..\TeslaConsole.csproj">
|
|
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
|
|
<Private>false</Private>
|
|
</ProjectReference>
|
|
<!-- The source-built wire contract (emits TeslaConsoleLaunchLib.dll). Referenced
|
|
directly so WireContractCompatTests can construct Tesla.Net types and compare
|
|
their BinaryFormatter output against the original vendored DLL. -->
|
|
<ProjectReference Include="..\..\..\Contract\Tesla.Contract.csproj" />
|
|
<!-- The source-built secure-config (emits TeslaSecureConfiguration.dll), for
|
|
SecureConfigCompatTests' byte-identity checks vs the original vendored DLL. -->
|
|
<ProjectReference Include="..\..\..\SecureConfig\Tesla.SecureConfig.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|