public void TestGetLowerBound() { { bool errorThrown = false; try { char[] c = {'a', 'b', 'c'}; c.GetLowerBound(-1); } catch (IndexOutOfRangeException) { errorThrown = true; } Assert("#H31", errorThrown); } { bool errorThrown = false; try { char[] c = {'a', 'b', 'c'}; c.GetLowerBound(1); } catch (IndexOutOfRangeException) { errorThrown = true; } Assert("#H32", errorThrown); } char[] c1 = new Char[5]; AssertEquals("#H33", 0, c1.GetLowerBound(0)); char[,] c2 = new Char[4,4]; AssertEquals("#H34", 0, c2.GetLowerBound(0)); AssertEquals("#H35", 0, c2.GetLowerBound(1)); }