mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Returning EditCell in EditRows (#302)
Instead of returning DbCellValues inside an EditRow, we should be returning EditCells. This way we can preserve dirty state when scrolling.
This commit is contained in:
@@ -331,10 +331,11 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.EditData
|
||||
// Note: No real need to check the RawObject property
|
||||
}
|
||||
|
||||
// ... The updated cell should match what it was set to
|
||||
DbCellValue newCell = er.Cells[0];
|
||||
Assert.Equal(newCell.DisplayValue, "foo");
|
||||
Assert.Equal(newCell.IsNull, false);
|
||||
// ... The updated cell should match what it was set to and be dirty
|
||||
EditCell newCell = er.Cells[0];
|
||||
Assert.Equal("foo", newCell.DisplayValue);
|
||||
Assert.False(newCell.IsNull);
|
||||
Assert.True(newCell.IsDirty);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user