示例#1
0
    public void ShiftRight3()
    {
        LightList <int> ints = new LightList <int>();

        ints.Add(0);
        ints.Add(1);
        ints.Add(2);
        ints.Add(3);
        ints.Add(4);
        ints.Add(5);
        ints.ShiftRight(3, 3);
        Assert.AreEqual(9, ints.Count);
        Assert.AreEqual(0, ints[0]);
        Assert.AreEqual(1, ints[1]);
        Assert.AreEqual(2, ints[2]);
        Assert.AreEqual(0, ints[3]);
        Assert.AreEqual(0, ints[4]);
        Assert.AreEqual(0, ints[5]);
        Assert.AreEqual(3, ints[6]);
        Assert.AreEqual(4, ints[7]);
        Assert.AreEqual(5, ints[8]);
    }