public void TestDeleteNotAllowed() { Assert.Throws<DataException>(() => { DataView TestView = new DataView(_dataTable); TestView.AllowDelete = false; TestView.Delete(0); }); }