public void SecondElementTestThrow() { var list = new VSArray <int>(); Assert.Throws(typeof(ArgumentOutOfRangeException), () => list.SecondElement()); list.AddElement(2); Assert.Throws(typeof(ArgumentOutOfRangeException), () => list.SecondElement()); }
public void SecondElementTest() { var list = new VSArray <int>(new[] { 0, 1, 2, 3, 4 }); Assert.That(list.SecondElement(), Is.EqualTo(1)); }