public void Removes_Last_Item() { var stack = new MyStack <int> { 1, 2, 3, 4, 5 }; int expectedLength = 4; int item = stack.GetAndRemove(); int actualLength = stack.Count; Assert.IsFalse(stack.Contains(item)); Assert.AreEqual(expectedLength, actualLength); }