Beispiel #1
0
        public override object[] CreateData()
        {
            var arrMixed =
                new STArrMixedNTestCase[5];

            arrMixed[0] = new STArrMixedNTestCase
                              ();
            object[][][] content = { new[] { new object[2] } };
            arrMixed[1] = new STArrMixedNTestCase
                              (content);
            content     = new[] { new[] { new object[3], new object[3] }, new[] { new object[3], new object[3] } };
            arrMixed[2] = new STArrMixedNTestCase
                              (content);
            content          = new[] { new[] { new object[3], new object[3] }, new[] { new object[3], new object[3] } };
            content[0][0][1] = "foo";
            content[0][1][0] = "bar";
            content[0][1][2] = "fly";
            content[1][0][0] = false;
            arrMixed[3]      = new STArrMixedNTestCase
                                   (content);
            content          = new[] { new[] { new object[3], new object[3] }, new[] { new object[3], new object[3] } };
            content[0][0][0] = "bar";
            content[0][1][0] = "wohay";
            content[0][1][1] = "johy";
            content[1][0][0] = 12;
            arrMixed[4]      = new STArrMixedNTestCase
                                   (content);
            var ret = new object[arrMixed.Length];

            Array.Copy(arrMixed, 0, ret, 0, arrMixed.Length);
            return(ret);
        }
Beispiel #2
0
 public override object[] CreateData()
 {
     var arrMixed =
         new STArrMixedNTestCase[5];
     arrMixed[0] = new STArrMixedNTestCase
         ();
     object[][][] content = {new[] {new object[2]}};
     arrMixed[1] = new STArrMixedNTestCase
         (content);
     content = new[] {new[] {new object[3], new object[3]}, new[] {new object[3], new object[3]}};
     arrMixed[2] = new STArrMixedNTestCase
         (content);
     content = new[] {new[] {new object[3], new object[3]}, new[] {new object[3], new object[3]}};
     content[0][0][1] = "foo";
     content[0][1][0] = "bar";
     content[0][1][2] = "fly";
     content[1][0][0] = false;
     arrMixed[3] = new STArrMixedNTestCase
         (content);
     content = new[] {new[] {new object[3], new object[3]}, new[] {new object[3], new object[3]}};
     content[0][0][0] = "bar";
     content[0][1][0] = "wohay";
     content[0][1][1] = "johy";
     content[1][0][0] = 12;
     arrMixed[4] = new STArrMixedNTestCase
         (content);
     var ret = new object[arrMixed.Length];
     Array.Copy(arrMixed, 0, ret, 0, arrMixed.Length);
     return ret;
 }