public void testAdd_LargeGroup()
{
IntList i = new IntList();
int n = 500;
for (int v = 0; v < n; v++)
i.add(10 + v);
Assert.AreEqual(n, i.size());
for (int v = 0; v < n; v++)
Assert.AreEqual(10 + v, i.get(v));
try
{
i.get(n);
Assert.Fail("Accepted out of bound index on list");
}
catch (IndexOutOfRangeException)
{
Assert.IsTrue(true);
}
}