diff --git a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs index c8b5bafe..9a475422 100644 --- a/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs +++ b/OpenNest.WinForms.Tests/Forms/CuttingInspectionPanelTests.cs @@ -327,7 +327,9 @@ public class CuttingInspectionPanelTests program.LineTo(2, 4); program.LineTo(2, 2); program.MoveTo(4, 2); program.LineTo(6, 2); program.LineTo(6, 4); program.LineTo(4, 4); program.LineTo(4, 2); - plate.Parts.Add(new Part(new Drawing("touching contours", program), new Vector(1, 1))); + var touching = new Drawing("touching contours", program); + editor.Nest.Drawings.Add(touching); + plate.Parts.Add(new Part(touching, new Vector(1, 1))); editor.Show(); editor.PlateManager.LoadAt(0); editor.OpenCuttingInspection(); @@ -772,6 +774,8 @@ public class CuttingInspectionPanelTests Assert.False(Field(first, "existingWorkBanner").Visible); Field