public void ReturnsDataAtIndex() { var list = new SimpleArrayList <int>(1); list.Add(2); Assert.AreEqual(list.Get(0), 2); }
public void SetsDataAtIndex() { var list = new SimpleArrayList <int>(2); list.Set(1, 2); Assert.AreEqual(2, list.Get(1)); }
public void GetThrowsIndexOutOfRange() { var list = new SimpleArrayList <int>(1); list.Get(1); }