Beispiel #1
0
    //--------------------------------------------------------------------
    protected void Test_InsertMoveDelete(DataStructures.GenericMatrixDimension <string> MD)
    {
        int n = 0;

        n = (int)MD.Count / 3;
        MD.Insert(n + 1, n);
        MD.Move(MD.Min, n + 1, n);
        MD.Move(n + 1, MD.Min, n);
        MD.Delete(n + 1, n);
        AssertEvenMatrix(MD.Matrix);
        return;
    }
Beispiel #2
0
    //--------------------------------------------------------------------
    protected void Test_Move_Backward(DataStructures.GenericMatrixDimension <string> MD)
    {
        string[] vector = { };

        for (int ndxRound = MD.Min; ndxRound <= MD.Max; ndxRound++)
        {
            vector = MD.GetVector(MD.Max);
            for (int ndx = MD.Max; ndx >= (MD.Min + 1); ndx += -1)
            {
                MD.Move(ndx - 1, ndx);
            }
            MD.SetVector(MD.Min, vector);
        }

        AssertEvenMatrix(MD.Matrix);
        return;
    }