Add NearRadius/FarRadius properties and a four-arg constructor (centerX, centerY, nearRadius, farRadius). Radius is set to farRadius so existing hysteresis math (unload threshold = Radius+2) uses the outer ring as the bookkeeping boundary. Old three-arg constructor becomes a thin wrapper: this(cx, cy, radius, radius) — no behaviour change, 25 pre-existing streaming tests still pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
18 lines
489 B
C#
18 lines
489 B
C#
using AcDream.App.Streaming;
|
|
using Xunit;
|
|
|
|
namespace AcDream.Core.Tests.Streaming;
|
|
|
|
public class StreamingRegionTwoTierTests
|
|
{
|
|
[Fact]
|
|
public void Constructor_TwoRadii_ExposesNearAndFarRadii()
|
|
{
|
|
var region = new StreamingRegion(centerX: 100, centerY: 100, nearRadius: 4, farRadius: 12);
|
|
|
|
Assert.Equal(4, region.NearRadius);
|
|
Assert.Equal(12, region.FarRadius);
|
|
Assert.Equal(100, region.CenterX);
|
|
Assert.Equal(100, region.CenterY);
|
|
}
|
|
}
|