public void ShouldHaveDifferentValueInIndex() { const int valueToRemove = 3; const int indexToRemove = 2; var vector = new VectorAdt <int>(); vector.Add(1, 2, 3, 4); vector.RemoveAt(indexToRemove); vector[indexToRemove].Should().Be(4); }
public void ShouldSubtractFromCount() { int startCount; var vector = new VectorAdt <int>(); vector.Add(1, 2, 3); startCount = vector.Count; vector.RemoveAt(1); vector.Count.Should().Be(startCount - 1); }