2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / System.Data / Test / System.Data / DataTableCollectionTest.cs
index b0fa4ac1bedc7158d88414ca6eda5236412d9e8e..05d0eddc7fba37c4b61b41c75063272fec799956 100644 (file)
@@ -330,20 +330,16 @@ namespace MonoTests.System.Data
                                tbcol.RemoveAt(-1);
                                Fail("the index was out of bound: must have failed");
                        }
-                       catch(Exception e)
+                       catch(IndexOutOfRangeException e)
                        {
-                               AssertEquals ("test#1", typeof (ArgumentException), e.GetType ());
-                               AssertEquals ("test#2", "There is no row at position -1.", e.Message);
                        }
                        try
                        {
                                tbcol.RemoveAt(101);
                                Fail("the index was out of bound: must have failed");
                        }
-                       catch(Exception e)
+                       catch(IndexOutOfRangeException e)
                        {
-                               AssertEquals ("test#3", typeof (ArgumentException), e.GetType ());
-                               AssertEquals ("test#4", "There is no row at position 101.", e.Message);
                        }
                        tbcol.RemoveAt (1);
                        AssertEquals ("test#5", 1, tbcol.Count);