public void Delete()
{
DataTable dt = DataProvider.CreateParentDataTable();
DataView dv = new DataView(dt);
DataRowView drv = dv[0];
int TableRowsCount = dt.Rows.Count;
int ViewRowCount = dv.Count;
// DataView Count
drv.Delete();
Assert.Equal(dv.Count, ViewRowCount - 1);
//the table count should stay the same until EndEdit is invoked
// Table Count
Assert.Equal(TableRowsCount, dt.Rows.Count);
// DataRowState deleted
Assert.Equal(DataRowState.Deleted, drv.Row.RowState);
}