public void RandomlyChangePropertyValues() => CollectionTestHelpers.RandomlyChangePropertyValuesInTwoCollections((l1, l2) => l1.ActiveZip(l2, (i1, i2) => i1.Property + i2.OtherProperty), (l1, l2) => l1.Zip(l2, (i1, i2) => i1.Property + i2.OtherProperty), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, () => new ActiveZipTestClass()
 {
     OtherProperty = RandomGenerator.GenerateRandomInteger()
 }, o => o.Property = RandomGenerator.GenerateRandomInteger(), o => o.OtherProperty = RandomGenerator.GenerateRandomInteger());
 public void RandomlyChangePropertyValues() => CollectionTestHelpers.RandomlyChangePropertyValuesInTwoCollections((l1, l2) => l1.ActiveExcept(l2, o => o.Property), (l1, l2) => l1.Except(l2, new KeyEqualityComparer <IntegerTestClass>(o => o.Property, null)), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, o => o.Property = RandomGenerator.GenerateRandomInteger(), o => o.Property = RandomGenerator.GenerateRandomInteger(), true, o => o.Property);
 public void RandomlyChangePropertyValues() => CollectionTestHelpers.RandomlyChangePropertyValuesInTwoCollections((l1, l2) => l1.ActiveLeftJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Property + r.Match(v => v.Property, 0)), (l1, l2) => l1.LeftJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Property + r.Match(v => v.Property, 0)), () => RandomGenerator.GenerateRandomTestClass(), () => RandomGenerator.GenerateRandomTestClass(), o => o.Property = RandomGenerator.GenerateRandomInteger(), o => o.Property = RandomGenerator.GenerateRandomInteger());
 public void RandomlyChangeKeyValues() => CollectionTestHelpers.RandomlyChangePropertyValuesInTwoCollections((l1, l2) => l1.ActiveRightExcludingJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Match(v => v.Property, 0) + r.Property), (l1, l2) => l1.RightExcludingJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Match(v => v.Property, 0) + r.Property), () => RandomGenerator.GenerateRandomTestClass(), () => RandomGenerator.GenerateRandomTestClass(), o => o.Key = RandomGenerator.GenerateRandomInteger(), o => o.Key = RandomGenerator.GenerateRandomInteger());
 public void RandomlyChangeKeyValues() => CollectionTestHelpers.RandomlyChangePropertyValuesInTwoCollections((l1, l2) => l1.ActiveOuterJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Match(v => v.Property, 0) + (r.HasValue ? r.Value.Property : 0)), (l1, l2) => l1.OuterJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Match(v => v.Property, 0) + (r.HasValue ? r.Value.Property : 0)), () => RandomGenerator.GenerateRandomTestClass(), () => RandomGenerator.GenerateRandomTestClass(), o => o.Key = RandomGenerator.GenerateRandomInteger(), o => o.Key = RandomGenerator.GenerateRandomInteger());
예제 #6
0
 public void RandomlyChangeKeyValues() => CollectionTestHelpers.RandomlyChangePropertyValuesInTwoCollections((l1, l2) => l1.ActiveInnerJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Property + r.Property), (l1, l2) => l1.InnerJoin(l2, l => l.Key, r => r.Key, (l, r) => l.Property + r.Property), () => RandomGenerator.GenerateRandomTestClass(), () => RandomGenerator.GenerateRandomTestClass(), o => o.Key = RandomGenerator.GenerateRandomInteger(), o => o.Key = RandomGenerator.GenerateRandomInteger());