Esempio n. 1
0
        public override object[] CreateData()
        {
            var arr = new
                      STArrIntegerUNTestCase[5];

            arr[0] = new STArrIntegerUNTestCase
                         ();
            object[][][] content = {};
            arr[1] = new STArrIntegerUNTestCase
                         (content);
            content          = new[] { new[] { new object[3], new object[3] } };
            content[0][0][1] = 0;
            content[0][1][0] = 0;
            arr[2]           = new STArrIntegerUNTestCase
                                   (content);
            content          = new[] { new[] { new object[3], new object[3] } };
            content[0][0][0] = 1;
            content[0][1][0] = 17;
            content[0][1][1] = int.MaxValue - 1;
            arr[3]           = new STArrIntegerUNTestCase
                                   (content);
            content          = new[] { new[] { new object[2], new object[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 STArrIntegerUNTestCase
                                   (content);
            var ret = new object[arr.Length];

            Array.Copy(arr, 0, ret, 0, arr.Length);
            return(ret);
        }
Esempio n. 2
0
 public override object[] CreateData()
 {
     var arr = new
         STArrIntegerUNTestCase[5];
     arr[0] = new STArrIntegerUNTestCase
         ();
     object[][][] content = {};
     arr[1] = new STArrIntegerUNTestCase
         (content);
     content = new[] {new[] {new object[3], new object[3]}};
     content[0][0][1] = 0;
     content[0][1][0] = 0;
     arr[2] = new STArrIntegerUNTestCase
         (content);
     content = new[] {new[] {new object[3], new object[3]}};
     content[0][0][0] = 1;
     content[0][1][0] = 17;
     content[0][1][1] = int.MaxValue - 1;
     arr[3] = new STArrIntegerUNTestCase
         (content);
     content = new[] {new[] {new object[2], new object[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 STArrIntegerUNTestCase
         (content);
     var ret = new object[arr.Length];
     Array.Copy(arr, 0, ret, 0, arr.Length);
     return ret;
 }