public void PeekTest() { int ActualCount = 4; CycleIntIncList list = new CycleIntIncList(ActualCount); Assert.AreEqual(list.Peek(), ActualCount); }
public void DefaultConstructorTest() { CycleIntIncList list = new CycleIntIncList(); Assert.AreEqual(list.Count, 2); Assert.AreEqual(list.Peek(), 2); }
public void CustomCountConstructorTest() { int ActualCount = 7; CycleIntIncList list = new CycleIntIncList(ActualCount); Assert.AreEqual(list.Count, ActualCount); Assert.AreEqual(list.Peek(), ActualCount); }
public void RemoveTest() { int ActualCount = 12; CycleIntIncList list = new CycleIntIncList(ActualCount); list.Remove(); Assert.AreEqual(list.Count, ActualCount - 1); Assert.AreEqual(list.Peek(), ActualCount - 1); }