mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-04 03:31:36 -05:00
test(release): check the ledger step's own undo state keeps its code
This commit is contained in:
1 parent
3e35821ab1
commit
9efeb4e5b6
1 file changed
+5
-2
@@ -116,9 +116,12 @@ public class MainFormReleaseNestingTests
|
||||
tab.Undo();
|
||||
tab.Undo();
|
||||
tab.Redo();
|
||||
tab.Redo();
|
||||
var redone = Assert.Single(tab.Nest.Plates, p => p.StockItemCodes.Count > 0);
|
||||
// Redone to the ledger step alone: its own recorded state carries the code.
|
||||
var redone = Assert.Single(tab.Nest.Plates, p => p.Parts.Count > 0);
|
||||
Assert.Equal(new Size(10, 10), redone.Size);
|
||||
Assert.Equal("S-1", Assert.Single(redone.StockItemCodes));
|
||||
tab.Redo();
|
||||
Assert.Single(tab.Nest.Plates, p => p.StockItemCodes.Count > 0);
|
||||
host.End(null!);
|
||||
Application.DoEvents();
|
||||
}, TestTimeout, "The live release ledger test did not complete.");
|
||||
|
||||
Reference in new issue
Block a user