From dc559a6c661271adc6a1dfe607db8379f52ff1b7 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Wed, 4 Nov 2026 22:56:38 -0500 Subject: [PATCH] test(release): smoke the Lattice engine by its current name The release smoke instantiated the multi-phase fill engine through its old Fill alias, so it never proved the current name. It now creates Lattice and checks that Fill still resolves to Lattice, as it does for the Opus55NestingEngine rename. Co-Authored-By: Claude Opus 5.5 --- scripts/ReleaseSmoke/Program.cs | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/scripts/ReleaseSmoke/Program.cs b/scripts/ReleaseSmoke/Program.cs index 347744f2..22a8e17d 100644 --- a/scripts/ReleaseSmoke/Program.cs +++ b/scripts/ReleaseSmoke/Program.cs @@ -20,7 +20,11 @@ try var create = registry.GetMethod("Create")!; // Every built-in engine the desktop offers must instantiate from the packaged assembly. - string[] expected = ["Default", "Rectangles", "Irregular", "Circles", "FlatBar", "Fill", "Strip", "Vertical Remnant", "Horizontal Remnant"]; + string[] expected = + [ + "Default", "Rectangles", "Irregular", "Circles", "FlatBar", + "Lattice", "Strip", "Vertical Remnant", "Horizontal Remnant", + ]; foreach (var name in expected) { var engine = create.Invoke(null, [name])!; @@ -30,10 +34,17 @@ try } // A selection saved before the engines were renamed must still resolve. - var resolved = registry.GetMethod("ResolveName")!.Invoke(null, ["Opus55NestingEngine"]); - if (!Equals(resolved, "Irregular")) - throw new InvalidOperationException($"Legacy selection Opus55NestingEngine resolved to '{resolved}', expected Irregular."); - Console.WriteLine("PASS: legacy selection Opus55NestingEngine resolves to Irregular"); + (string Legacy, string Current)[] renamed = + [("Opus55NestingEngine", "Irregular"), ("Fill", "Lattice")]; + var resolveName = registry.GetMethod("ResolveName")!; + foreach (var (legacy, current) in renamed) + { + var resolved = resolveName.Invoke(null, [legacy]); + if (!Equals(resolved, current)) + throw new InvalidOperationException( + $"Legacy selection {legacy} resolved to '{resolved}', expected {current}."); + Console.WriteLine($"PASS: legacy selection {legacy} resolves to {current}"); + } // Failure case: an unknown engine must be rejected, so a broken registry cannot pass silently. try