public void RandomlyInsertItems() => CollectionTestHelpers.RandomlyInsertItemsIntoTwoCollections((l1, l2) => l1.ActiveLeftJoin(l2, l => l.Property, r => r.Property, (l, r) => l.Property + r.Match(v => v.Property, 0)), (l1, l2) => l1.LeftJoin(l2, l => l.Property, r => r.Property, (l, r) => l.Property + r.Match(v => v.Property, 0)), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger(0, 100)
 }, () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger(0, 100)
 });
 public void RandomlyInsertItems() => CollectionTestHelpers.RandomlyInsertItemsIntoTwoCollections((l1, l2) => l1.ActiveZip(l2, (i1, i2) => i1 + i2), (l1, l2) => l1.Zip(l2, (i1, i2) => i1 + i2), () => RandomGenerator.GenerateRandomInteger(0, 10), () => RandomGenerator.GenerateRandomInteger(0, 10));
 public void RandomlyInsertItems() => CollectionTestHelpers.RandomlyInsertItemsIntoTwoCollections((l1, l2) => l1.ActiveExcept(l2), (l1, l2) => l1.Except(l2), () => RandomGenerator.GenerateRandomInteger(0, 10), () => RandomGenerator.GenerateRandomInteger(0, 10), true);
 public void RandomlyInsertItems() => CollectionTestHelpers.RandomlyInsertItemsIntoTwoCollections((l1, l2) => l1.ActiveConcat(l2), (l1, l2) => l1.Concat(l2), RandomGenerator.GenerateRandomInteger, RandomGenerator.GenerateRandomInteger);
示例#5
0
 public void RandomlyInsertItems() => CollectionTestHelpers.RandomlyInsertItemsIntoTwoCollections((l1, l2) => l1.ActiveElementsAtOrEmpty(l2), (l1, l2) => ElementsAtOrEmpty(l1, l2), () => RandomGenerator.GenerateRandomInteger(), () => RandomGenerator.GenerateRandomInteger(-20, 120));