public void RemoveTest()
{
DataTable table = new DataTable();
table.Columns.Add("col1");
Constraint c = table.Constraints.Add("c", table.Columns[0], false);
Assert.Throws<ArgumentException>(() => table.Constraints.Remove("sdfs"));
table.Constraints.Remove(c);
Assert.Equal(0, table.Constraints.Count);
// No exception shud be raised
table.Constraints.Add(c);
Assert.Equal(1, table.Constraints.Count);
}
}