public void RandomlyChangeParameter() => CollectionTestHelpers.RandomlyChangeParameter((l, p) => l.ActiveSelect(p, (o, i) => o.IntProperty.ToActiveValue(x => x.Property * i.Property)), (l, p) => l.Select(o => o.IntProperty.Property * p.Property), GenerateRandom);
 public void RandomlyChangeParameter() => CollectionTestHelpers.RandomlyChangeParameter((l, p) => l.ActiveDistinct(p, (o, i) => o.Property * i.Property), (l, p) => l.Distinct(new KeyEqualityComparer <IntegerTestClass>(o => o.Property * p.Property, null)), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, true);
 public void RandomlyChangeParameter() => CollectionTestHelpers.RandomlyChangeParameter((l, p) => l.ActiveWhere(p, (o, i) => o.IntProperty.ToActiveValue(x => (x.Property * i.Property) % 3 == 0)), (l, p) => l.Where(o => (o.IntProperty.Property * p.Property) % 3 == 0), GenerateRandom);
Exemple #4
0
 public void RandomlyChangeParameter() => CollectionTestHelpers.RandomlyChangeParameter((l, p) => l.ActiveSelect(p, (o, i) => o.Property * i.Property), (l, p) => l.Select(o => o.Property * p.Property), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 });
Exemple #5
0
 public void RandomlyChangeParameter() => CollectionTestHelpers.RandomlyChangeParameter((l, p) => l.ActiveGroupBy(p, (o, i) => o.Property * (i.Property % 5 == 0 ? 0 : 1)), (l, p) => l.GroupBy(o => o.Property * (p.Property % 5 == 0 ? 0 : 1)), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, false, g => g.Key, (g1, g2) => g1.Zip(g2, (i1, i2) => Equals(i1, i2)).All(b => b));
 public void RandomlyChangeParameter() => CollectionTestHelpers.RandomlyChangeParameter((l, p) => l.ActiveSelectMany(p, (o, i) => o.Property.Select(x => x * i.Property)), (l, p) => l.SelectMany(o => o.Property.Select(x => x * p.Property)), () => new ActiveSelectManyTestClass()
 {
     Property = RandomGenerator.GenerateRandomIntegerList()
 });