From ef547b050a8d9ebeb2dc97826217403283b8d802 Mon Sep 17 00:00:00 2001 From: NINI Date: Sat, 10 Oct 2026 04:01:22 +0900 Subject: [PATCH] Align fixed-stage visual expectations with six approved landscapes --- .../Tests/EditMode/ContentAssetTests.cs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Assets/MagnetismHeroes/Tests/EditMode/ContentAssetTests.cs b/Assets/MagnetismHeroes/Tests/EditMode/ContentAssetTests.cs index 73a57af..a74f87b 100644 --- a/Assets/MagnetismHeroes/Tests/EditMode/ContentAssetTests.cs +++ b/Assets/MagnetismHeroes/Tests/EditMode/ContentAssetTests.cs @@ -31,16 +31,11 @@ namespace MagnetismHeroes.Tests Assert.That(definition.BallPositions.Count, Is.EqualTo(definition.Total)); Assert.That(asset.Theme, Is.EqualTo(id<=10 ? "Garden" : id<=20 ? "Cloud" : "Workshop")); foreach (var placement in asset.Decorations) Assert.That(placement.prefab, Is.Not.Null); - var expectedDecorations = new[] { "MeadowClearing", "OpenStoneArch", "MossStoneSteps", "PebbleScatter" } - .Concat(Enumerable.Repeat("FarHorizon", 4)).Concat(Enumerable.Repeat("DistantRidge", 4)) - .Concat(Enumerable.Repeat("GentleHill", 4)) - .Concat(Enumerable.Repeat(id <= 10 ? "RoundCanopyTree" : id <= 20 ? "SageCanopyTree" : "TallWindTree", 4)) - .Concat(new[] { id <= 10 ? "MintShrub" : "SageShrub" }) - .Concat(id <= 10 ? new[] { "DaisyColony", "FernCluster", "GrassTuftMint", "GrassTuftGold" } - : id <= 20 ? new[] { "PinkCosmosColony", "LavenderLupineColony", "DaisyColony", "GrassTuftGold" } - : new[] { "SlateBoulder", "RoundLimestone", "LowLimestone", "FernCluster" }); - Assert.That(asset.Decorations.Select(placement => placement.prefab.name), Is.EquivalentTo(expectedDecorations), $"Stage {id} natural theme composition"); - foreach (string name in new[] { "FarHorizon", "DistantRidge", "GentleHill" }) + foreach (string name in new[] { "MeadowClearing", "OpenStoneArch", "MossStoneSteps", "PebbleScatter", "GentleHill" }) + Assert.That(asset.Decorations.Any(placement => placement.prefab.name == name), Is.True, $"Stage {id} shared discovery and terrain: {name}"); + var primaryDecorations = new[] { "DaisyColony", "RoundCanopyTree", "PinkCosmosColony", "FernCluster", "RoundLimestone", "OpenStoneArch" }; + Assert.That(asset.Decorations.Any(placement => placement.prefab.name == primaryDecorations[(id - 1) / 5]), Is.True, $"Stage {id} five-stage natural composition"); + foreach (string name in new[] { "FarHorizon", "DistantRidge" }) Assert.That(asset.Decorations.Where(placement => placement.prefab.name == name).Select(placement => placement.eulerAngles.y), Is.EquivalentTo(new[] { 0f, 90f, 180f, 270f }), $"Stage {id} {name} surrounds all four directions"); string before=EditorJsonUtility.ToJson(asset); var board=new BoardRules(definition);