示例#1
0
        public override object[] CreateData()
        {
            var arr =
                new STArrIntegerWUONTestCase[5];

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

            Array.Copy(arr, 0, ret, 0, arr.Length);
            return(ret);
        }
示例#2
0
 public override object[] CreateData()
 {
     var arr =
         new STArrIntegerWUONTestCase[5];
     arr[0] = new STArrIntegerWUONTestCase
         ();
     object[][][] content = {};
     arr[1] = new STArrIntegerWUONTestCase
         (content);
     content = new[] {new[] {new object[3], new object[3]}};
     content[0][0][1] = 0;
     content[0][1][0] = 0;
     arr[2] = new STArrIntegerWUONTestCase
         (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 STArrIntegerWUONTestCase
         (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 STArrIntegerWUONTestCase
         (content);
     var ret = new object[arr.Length];
     Array.Copy(arr, 0, ret, 0, arr.Length);
     return ret;
 }