Delete the callerless portal-BFS research graph and spent renderer probe families while retaining the production RetailFrameWalk path, terrain diagnostics, membership invariant, and walk transcript. Mutation evidence (all restored): 1. Restored PortalVisibilityBuilder type -> AppAssembly_ContainsNoSupersededPortalGraphTypes first failed Assert.Empty with AcDream.App.Rendering.PortalVisibilityBuilder. 2. Restored ACDREAM_PROBE_FACILITY_STAIRS -> ProductionSource_ContainsNoDeletedRendererProbe_AndRetainsWalkTranscriptProof first failed Assert.Empty on RenderingDiagnostics.cs. 3. Added a second RetailFrameWalk field -> WalkFrameOwners_AreUnique first failed Assert.Single with _frameWalk and _mutatedSecondFrameWalk. 4. Added OrderBy to OrderedStream -> OrderedWalkStream_HasNoCrossStreamReorder first failed Assert.DoesNotContain on OrderBy(. 5. Added IDatReaderWriter parameter -> FrameTimeWalkOwners_HaveNoRawDatDependency first failed Assert.Empty on RetailFrameWalk.MutatedRawDatParameter.
28 lines
925 B
C#
28 lines
925 B
C#
using AcDream.Core.Rendering;
|
|
using Xunit;
|
|
|
|
namespace AcDream.Core.Tests.Rendering;
|
|
|
|
public sealed class RenderingDiagnosticsTests
|
|
{
|
|
[Theory]
|
|
[InlineData(0x00000029ul, false)]
|
|
[InlineData(0xA9B40029ul, false)]
|
|
[InlineData(0x00000100ul, true)]
|
|
[InlineData(0xA9B40105ul, true)]
|
|
public void IsEnvCellId_DistinguishesOutdoorVsIndoorByLow16Bits(ulong id, bool expected)
|
|
=> Assert.Equal(expected, RenderingDiagnostics.IsEnvCellId(id));
|
|
|
|
[Theory]
|
|
[InlineData(0xA9B40031u, true, false)]
|
|
[InlineData(0xA9B40171u, true, true)]
|
|
[InlineData(0xA9B40171u, false, false)]
|
|
[InlineData(0u, true, false)]
|
|
public void ShouldRenderIndoor_UsesPlayerCellAndResolvedRoot(
|
|
uint playerCellId,
|
|
bool renderRootResolved,
|
|
bool expected)
|
|
=> Assert.Equal(
|
|
expected,
|
|
RenderingDiagnostics.ShouldRenderIndoor(playerCellId, renderRootResolved));
|
|
}
|