public TestStructSmall1 GetRandInstance(RandHelper helper, params int[] lengths) { TestStructSmall1 res = new TestStructSmall1(); helper.GetRand(out res.i1); helper.GetRand(out res.i2); helper.GetRand(out res.b1); helper.GetRand(out res.l1); return(res); }
public TestStructSmall2 GetRandInstance(RandHelper helper, params int[] lengths) { TestStructSmall2 res = new TestStructSmall2(); helper.GetRand(out res.l1); helper.GetRand(out res.b1); helper.GetRand(out res.b2); helper.GetRand(out res.l2); helper.GetRand(out res.dt); return(res); }
public TestStructLarge1 GetRandInstance(RandHelper helper, params int[] lengths) { TestStructLarge1 res = new TestStructLarge1(); helper.GetRand(out res.b1); helper.GetRand(out res.t1); helper.GetRand(out res.dt1); res.ss1 = new TestStructSmall1().GetRandInstance(helper); res.ss2 = new TestStructSmall2().GetRandInstance(helper); helper.GetRand(out res.i1); helper.GetRand(out res.l1); return(res); }
public TestClassSmall GetRandInstance(RandHelper helper, params int[] lengths) { TestClassSmall res = new TestClassSmall(); helper.GetRand(out res.b1); res.ss1 = new TestStructSmall1().GetRandInstance(helper); res.ia1 = new int[lengths[0]]; for (int i = 0; i < res.ia1.Length; i++) { helper.GetRand(out res.ia1[i]); } helper.GetRand(out res.l1); return(res); }
public TestClassLarge GetRandInstance(RandHelper helper, params int[] lengths) { TestClassLarge res = new TestClassLarge(); helper.GetRand(out res.b1); res.ssa1 = new TestStructSmall2[lengths[0]]; for (int i = 0; i < res.ssa1.Length; i++) { res.ssa1[i] = new TestStructSmall2().GetRandInstance(helper); } helper.GetRand(out res.i1); res.sla1 = new TestStructLarge1[lengths[0]]; for (int i = 0; i < res.sla1.Length; i++) { res.sla1[i] = new TestStructLarge1().GetRandInstance(helper); } helper.GetRand(out res.l1); res.ia1 = new int[lengths[0]]; for (int i = 0; i < res.ia1.Length; i++) { helper.GetRand(out res.ia1[i]); } return(res); }