public void ShouldThrowIndexOutOfRangeIfIsGreaterThanCount() { var vector = new VectorAdt <int>(); Action act = () => vector.Get(0); act.Should().Throw <IndexOutOfRangeException>(); }
public void ShouldThrowIndexOutOfRangeAfterClear() { var vector = new VectorAdt <int>(); vector.Add(1, 2, 3); vector.Clear(); Action act = () => vector.Get(0); act.Should().Throw <IndexOutOfRangeException>(); }