public void Indexer1_Index_Negative()
{
DataTable dt = DataProvider.CreateParentDataTable();
try
{
DataColumn column = dt.Columns[-1];
Assert.False(true);
}
catch (IndexOutOfRangeException ex)
{
// Cannot find column -1
Assert.Equal(typeof(IndexOutOfRangeException), ex.GetType());
Assert.Null(ex.InnerException);
Assert.NotNull(ex.Message);
}
}