public void TestSetDeqElementByPositionOoRNegative() { var d = new Deq <int>(); d.SetDeqElementByPosition(0, 1); d.SetDeqElementByPosition(-1, -1); }
public void TestSetDeqElementByPositionOoRPositive() { var d = new Deq <int>(); d.SetDeqElementByPosition(0, 1); d.SetDeqElementByPosition(2, 2); }
public void TestGetDeqElementByPositionOutOfRangePositive() { var d = new Deq <int>(); d.SetDeqElementByPosition(0, 1); d.GetDeqElementByPosition(1); }
public void TestEmptySetDeqElementByPosition0() { const int val = 100; var d = new Deq <int>(); d.SetDeqElementByPosition(0, val); }
public void TestSetDeqElementByPosition() { var d = new Deq <int>(); d.PushFront(1); d.SetDeqElementByPosition(0, 2); Assert.IsFalse(d.Empty); Assert.AreEqual(1, d.Count); Assert.AreEqual(2, d.GetDeqElementByPosition(0)); Assert.AreEqual(2, d.PopFront()); }
public void TestEmptySetDeqElementByPositionOoR1() { var d = new Deq <int>(); d.SetDeqElementByPosition(1, 1); }
public void TestEmptySetDeqElementByPosition0() { const int val = 100; var d = new Deq<int>(); d.SetDeqElementByPosition(0, val); }
public void TestSetDeqElementByPositionOoRPositive() { var d = new Deq<int>(); d.SetDeqElementByPosition(0, 1); d.SetDeqElementByPosition(2, 2); }
public void TestSetDeqElementByPositionOoRNegative() { var d = new Deq<int>(); d.SetDeqElementByPosition(0, 1); d.SetDeqElementByPosition(-1, -1); }
public void TestSetDeqElementByPosition() { var d = new Deq<int>(); d.PushFront(1); d.SetDeqElementByPosition(0, 2); Assert.IsFalse(d.Empty); Assert.AreEqual(1, d.Count); Assert.AreEqual(2, d.GetDeqElementByPosition(0)); Assert.AreEqual(2, d.PopFront()); }
public void TestGetDeqElementByPositionOutOfRangePositive() { var d = new Deq<int>(); d.SetDeqElementByPosition(0, 1); d.GetDeqElementByPosition(1); }
public void TestEmptySetDeqElementByPositionOoRMinus1() { var d = new Deq<int>(); d.SetDeqElementByPosition(-1, 1); }