Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int size = list.Count;
- int index = list.Add(element);
- Assert.AreEqual(size, index); // Element is always added at the end
- Assert.AreEqual(element, list[index]); // Returned index is position in list
Add Comment
Please, Sign In to add comment