test(windows): fix the two windows-desktop CI failures

The cut-off clearance change (cacfdcf5) drops a grid line within the cut
clearance of the tail separator. The dialog test's fixture used spacing 40
with parts occupying exactly 80, so the second line (80, beside the 80.5
separator) was dropped and the lone remaining line could not shift, which
is what the test asserts. Spacing 38 keeps two lines, so the shift and the
"less than the fixed grid" report are still exercised.

The overlap-menu test was renamed when Check Active Plate and Cancel Check
left the menu (c10abfe9), but the acceptance manifest still required the
old name, so the coverage check found zero cases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Opus 5.5 committed 2026-11-18 09:34:29 -05:00
1 parent fdb45d045c
commit 101f5e16df
2 files changed
+6 -4

No files matched your search

@@ -48,13 +48,15 @@ public class AutomaticCutOffFormTests
spacing.Text = "30";
Assert.Equal(15, double.Parse(minimum.Text));
minimum.Text = "20";
spacing.Text = "40";
// Not 40: the grid's second line (80) would fall within the cut clearance of the
// tail separator (80.5) and be dropped, leaving one line with no room to shift.
spacing.Text = "38";
Assert.Equal("20", minimum.Text);
Invoke(form, "PreviewButton_Click", null, EventArgs.Empty);
var expected = AutomaticCutOffPlanner.Create(view.Plate,
new AutomaticCutOffOptions { Spacing = 40, MinimumStripLength = 20, MinimumTailLength = 12 },
new AutomaticCutOffOptions { Spacing = 38, MinimumStripLength = 20, MinimumTailLength = 12 },
view.CutOffSettings);
Assert.NotEqual(40, expected.Definitions.First(c => c.Axis == CutOffAxis.Vertical).Position.X);
Assert.NotEqual(38, expected.Definitions.First(c => c.Axis == CutOffAxis.Vertical).Position.X);
Assert.Equal(expected.Definitions.Select(c => c.Position.X),
PreviewParts(view).Select(p => ((RapidMove)p.BasePart.Program.Codes[0]).EndPoint.X));
Assert.Contains("Strip cuts:", Control<Label>(form, "stripCutsLabel").Text);
+1 -1
View File
@@ -663,7 +663,7 @@
},
{
"project": "OpenNest.WinForms.Tests",
"method": "OpenNest.WinForms.Tests.PlateOverlapOverlayTests.MenusFollowMdiActivationDocumentDisplayAndRunningState",
"method": "OpenNest.WinForms.Tests.PlateOverlapOverlayTests.MenusFollowMdiActivationAndDocumentDisplay",
"minimum_cases": 1
},
{