using XFEEDToolBox.Core.Rendering; using XFEExtension.NetCore.XUnit.Attributes; namespace XFEEDToolBox.Test; [TestFixture] public sealed class GalaxyOriginalTradeAssetsTests { [Test] public void CurrentTradeUsesTheAuthoredSrgbAtlasesAndRetainsThePaddedTrail() { var assets = GalaxyOriginalTradeAssets.Reference; Check.Equal(512, assets.Route.Width); Check.Equal(512, assets.Route.Height); Check.Equal(131072, assets.Route.Payload.Length); Check.Equal(131072, assets.Hotspot.Payload.Length); Check.Equal(64, assets.Trail.Width); Check.Equal(4, assets.Trail.Height); Check.Equal(256, assets.Trail.RowPitch); Check.Equal(512, assets.Trail.Payload.Length); // The route's two-sample+trail shader and the hotspot's two-sample shader have different authored gains/widths. Check.Equal(5f, assets.RouteMaterial.StandardMapScales.X); Check.Equal(2f, assets.HotspotMaterial.StandardMapScales.X); Check.Equal(1f, assets.RouteMaterial.WidthScale); Check.Equal(.65f, assets.HotspotMaterial.WidthScale); Check.Equal(4f, assets.RouteMaterial.TileLength!.Value); Check.That(assets.HotspotMaterial.TileLength is null); } }