public void CollectionChanging()
{
_counter = 0;
var ds = new DataSet();
ds.Tables.CollectionChanging += new CollectionChangeEventHandler(Tables_CollectionChanging);
ds.Tables.Add();
ds.Tables.Add();
Assert.Equal(2, _counter);
ds.Tables.Remove(ds.Tables[0]);
ds.Tables.Remove(ds.Tables[0]);
Assert.Equal(4, _counter);
}