diff --git a/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs b/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs index b5c32fc..f9f1376 100644 --- a/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs +++ b/OpenNest.WinForms.Tests/Forms/AutomaticCutOffFormTests.cs @@ -96,6 +96,48 @@ public class AutomaticCutOffFormTests }); } + [Fact] + public void SettingsMode_SeedsTheGivenOptionsAndOkReturnsThemWithoutAddingCutoffs() + { + RunSta(() => + { + using var view = CreateView(); + var initial = new AutomaticCutOffOptions { Spacing = 30, MinimumStripLength = 20, MinimumTailLength = 8 }; + using var form = AutomaticCutOffForm.ForSettings(view, Units.Inches, null, initial); + Assert.Equal("&Use These Settings", Control