System.Data.Tests.VersionNotFoundExceptionTest.Generate3 C# (CSharp) Метод

Generate3() приватный Метод

private Generate3 ( ) : void
Результат void
        public void Generate3()
        {
            DataTable tbl = DataProvider.CreateChildDataTable();
            DataRow drParent = tbl.Rows[0];
            drParent.Delete();
            tbl.AcceptChanges();

            Assert.Throws<VersionNotFoundException>(() =>
            {
                object obj = drParent[0, DataRowVersion.Original];
            });
        }
    }
VersionNotFoundExceptionTest