Exemplo n.º 1
0
        public override object[] CreateData()
        {
            var arr = new
                      STArrIntegerONTestCase[5];

            arr[0] = new STArrIntegerONTestCase
                         ();
            int[][][] content = {};
            arr[1] = new STArrIntegerONTestCase
                         (content);
            content          = new[] { new[] { new int[3], new int[3] } };
            content[0][0][1] = 0;
            content[0][1][0] = 0;
            arr[2]           = new STArrIntegerONTestCase
                                   (content);
            content          = new[] { new[] { new int[3], new int[3] } };
            content[0][0][0] = 1;
            content[0][1][0] = 17;
            content[0][1][1] = int.MaxValue - 1;
            arr[3]           = new STArrIntegerONTestCase
                                   (content);
            content          = new[] { new[] { new int[2], new int[2] } };
            content[0][0][0] = 3;
            content[0][0][1] = 17;
            content[0][1][0] = 25;
            content[0][1][1] = int.MaxValue - 2;
            arr[4]           = new STArrIntegerONTestCase
                                   (content);
            var ret = new object[arr.Length];

            Array.Copy(arr, 0, ret, 0, arr.Length);
            return(ret);
        }
Exemplo n.º 2
0
 public override object[] CreateData()
 {
     var arr = new
         STArrIntegerONTestCase[5];
     arr[0] = new STArrIntegerONTestCase
         ();
     int[][][] content = {};
     arr[1] = new STArrIntegerONTestCase
         (content);
     content = new[] {new[] {new int[3], new int[3]}};
     content[0][0][1] = 0;
     content[0][1][0] = 0;
     arr[2] = new STArrIntegerONTestCase
         (content);
     content = new[] {new[] {new int[3], new int[3]}};
     content[0][0][0] = 1;
     content[0][1][0] = 17;
     content[0][1][1] = int.MaxValue - 1;
     arr[3] = new STArrIntegerONTestCase
         (content);
     content = new[] {new[] {new int[2], new int[2]}};
     content[0][0][0] = 3;
     content[0][0][1] = 17;
     content[0][1][0] = 25;
     content[0][1][1] = int.MaxValue - 2;
     arr[4] = new STArrIntegerONTestCase
         (content);
     var ret = new object[arr.Length];
     Array.Copy(arr, 0, ret, 0, arr.Length);
     return ret;
 }