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