public void ShouldCountTheNumberOfElementsForOneElement() { VectorClass<int> list = new VectorClass<int>(); list.Add(1); int result = list.Count(); Assert.AreEqual(1, result); }
public void ShouldCountTheNumberOfElementsForOneStringElement() { VectorClass<string> list = new VectorClass<string>(); list.Add("something"); int result = list.Count(); Assert.AreEqual(1, result); }
public void ShouldTestIfClearWorks() { VectorClass<int> list = new VectorClass<int>(); list.Add(1); list.Add(2); list.Clear(); int result = list.Count(); Assert.AreEqual(0, result); }