public void AddFkException2()
{
//Foreign key rules only work when the tables
//are apart of the dataset
var ds = new DataSet();
ds.Tables.Add(_table);
_table2.TableName = "TestTable2";
ds.Tables.Add(_table2);
_table.Rows.Add(new object[] { 1 });
_table2.Rows.Add(new object[] { 3 });
var fkc = new ForeignKeyConstraint(_table.Columns[0], _table2.Columns[0]);
Assert.Throws<ArgumentException>(() => _table2.Constraints.Add(fkc));
}