public void FlipFlopIteratorTest_3()
    {
        iterator = new FlipFlopIterator(-1, -4, 1);

        var actual   = GetIterationList();
        var expected = new List <int?> {
            -1, 0, -2, 1, -3, -4
        };

        Assert.That(actual, Is.EquivalentTo(expected));
    }
    public void FlipFlopIteratorTest_2()
    {
        iterator = new FlipFlopIterator(3, 1, 6);

        var actual   = GetIterationList();
        var expected = new List <int?> {
            3, 4, 2, 5, 1, 6
        };

        Assert.That(actual, Is.EquivalentTo(expected));
    }
    public void FlipFlopIteratorTest_9()
    {
        iterator = new FlipFlopIterator(-4, -6, -1);

        var actual   = GetIterationList();
        var expected = new List <int?> {
            -4, -3, -5, -2, -6, -1
        };

        Assert.That(actual, Is.EquivalentTo(expected));
    }
    public void FlipFlopIteratorTest_4()
    {
        iterator = new FlipFlopIterator(0, 0, 0);

        var actual   = GetIterationList();
        var expected = new List <int?> {
            0
        };

        Assert.That(actual, Is.EquivalentTo(expected));
    }
    public void FlipFlopIteratorTest_10()
    {
        var item1 = new { val = "Item1" };
        var item2 = new { val = "Item2" };
        var item3 = new { val = "Item3" };
        var item4 = new { val = "Item4" };
        var item5 = new { val = "Item5" };

        var collection = new List <object> {
            item1, item2, item3, item4, item5
        };

        typedIterator = new FlipFlopIterator <object>(collection, item2);

        var actual   = GetTypedIterationList();
        var expected = new List <object> {
            item2, item3, item1, item4, item5
        };

        Assert.That(actual, Is.EquivalentTo(expected));
    }