mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-07 09:02:11 -04:00
The first windows-desktop run of BomImportFormTests (PR #4, run 37379965924) failed four cases: - InvalidQty_IsRefusedAndTheOldValueKept("0" / "-1" / ""): the tests committed with DataGridView.EndEdit(), which never raises CellValidating, so the grid's default parser stored 0, -1 or null. - BlankingMaterialOrThickness...: a null value from CellParsing is ignored by the grid, so a blank material was stored as " ". Operator commits (Enter, leaving the cell or the grid) do validate, but a programmatic EndEdit() must not store text validation refuses either. CellParsing now keeps the row's current quantity or thickness for text validation would refuse, trims the material (a blank one is ""), and a cleared thickness or quantity cell stores null through the columns' DataSourceNullValue. A thickness of only spaces is refused like any other invalid text. The tests now commit by pressing Enter (ProcessEnterKey), as the operator does, and a new ProgrammaticCommitOfInvalidText test covers the EndEdit() path.