[Test] public void RemoveAtNonExistingTest() { var l = new RandomList <int> { 1, 2, 3, 4 }; Assert.Throws <ArgumentOutOfRangeException>(() => l.RemoveAt(5)); Assert.AreEqual(F.list(1, 2, 3, 4), l); Assert.AreEqual(4, l.Count); }
[Test] public void RemoveAtFromEndTest() { var l = new RandomList <int> { 1, 2, 3, 4 }; l.RemoveAt(3); Assert.AreEqual(F.list(1, 2, 3), l); Assert.AreEqual(3, l.Count); }