Beispiel #1
0
    public void RotateRow()
    {
        var line = new ArrayLine <int>(_data, ArrayLine.Direction.Row, index: 1);

        line.RotateValues(1);

        Assert.AreEqual(12, line[0]);
        Assert.AreEqual(11, line[5]);
    }
Beispiel #2
0
    public void RotateManyColumn()
    {
        var line = new ArrayLine <int>(_data, ArrayLine.Direction.Column, index: 1);

        line.RotateValues(2);

        Assert.AreEqual(8, line[0]);
        Assert.AreEqual(2, line[2]);
    }