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