public int size()
{
return count;
}
public void testEmpty_SpecificCapacity() { IntList i = new IntList(5); Assert.AreEqual(0, i.size()); try { i.get(0); Assert.Fail("Accepted 0 index on empty list"); } catch (IndexOutOfRangeException) { Assert.IsTrue(true); } }