public void DataRowCollection_Clear2() { Assert.Throws<InvalidConstraintException>(() => { DataSet ds = DataProvider.CreateForigenConstraint(); ds.Tables[0].Rows.Clear(); //Try to clear the parent table }); }