System.Data.Tests.DataRowTest2.DataRow_RowError3 C# (CSharp) Method

DataRow_RowError3() private method

private DataRow_RowError3 ( ) : void
return void
        public void DataRow_RowError3()
        {
            Assert.Throws<ConstraintException>(() =>
           {
               DataSet ds = DataProvider.CreateForigenConstraint();
               ds.Tables[0].BeginLoadData();
               ds.Tables[0].Rows[0][0] = 10;
               ds.Tables[0].EndLoadData(); //Foreign constraint violation
           });
        }
DataRowTest2