// Phase A8 — visibility probe flag tests. using System; using AcDream.Core.Rendering; using Xunit; namespace AcDream.Core.Tests.Rendering; public class RenderingDiagnosticsVisibilityTests { [Fact] public void ProbeVisibilityEnabled_CanBeToggled() { var prev = RenderingDiagnostics.ProbeVisibilityEnabled; try { RenderingDiagnostics.ProbeVisibilityEnabled = true; Assert.True(RenderingDiagnostics.ProbeVisibilityEnabled); RenderingDiagnostics.ProbeVisibilityEnabled = false; Assert.False(RenderingDiagnostics.ProbeVisibilityEnabled); } finally { RenderingDiagnostics.ProbeVisibilityEnabled = prev; } } }