public void ToArray_EmptyStack_ShouldReturnProperArray()
    {
        //Arrange
        var myStack = new DoubleLinkedQueue <DateTime>();

        //Act
        var returnArray = myStack.ToArray();

        //Assert
        Assert.IsTrue(!returnArray.Any());
    }
    public void PushPop_EmptyStackWithCapacityOne_ShoudIncreaseCapacity()
    {
        myStack = new DoubleLinkedQueue<int>();

        Assert.AreEqual(myStack.Count, 0);

        myStack.Enqueue(1);

        Assert.AreEqual(myStack.Count, 1);

        myStack.Enqueue(2);

        Assert.AreEqual(myStack.Count, 2);

        myStack.Dequeue();

        Assert.AreEqual(myStack.Count, 1);

        myStack.Dequeue();

        Assert.AreEqual(myStack.Count, 0);
    }
    public void PushPop_EmptyStackWithCapacityOne_ShoudIncreaseCapacity()
    {
        myStack = new DoubleLinkedQueue <int>();

        Assert.AreEqual(myStack.Count, 0);

        myStack.Enqueue(1);

        Assert.AreEqual(myStack.Count, 1);

        myStack.Enqueue(2);

        Assert.AreEqual(myStack.Count, 2);

        myStack.Dequeue();

        Assert.AreEqual(myStack.Count, 1);

        myStack.Dequeue();

        Assert.AreEqual(myStack.Count, 0);
    }
    public void ToArray_EmptyStack_ShouldReturnProperArray()
    {
        //Arrange
        var myStack = new DoubleLinkedQueue<DateTime>();

        //Act
        var returnArray = myStack.ToArray();

        //Assert
        Assert.IsTrue(!returnArray.Any());
    }
 public void Init()
 {
     //Arrange
     myStack = new DoubleLinkedQueue<int>();
 }
 public void Init()
 {
     //Arrange
     myStack = new DoubleLinkedQueue <int>();
 }