Beispiel #1
0
 public void RandomlyChangePropertyValues() => ValueTestHelpers.RandomlyChangePropertyValues(l => l.ActiveMaxOrDefault(i => i.Property), l => { try { return(l.Max(i => i.Property)); } catch { return(0); } }, () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, o => o.Property = RandomGenerator.GenerateRandomInteger());
Beispiel #2
0
 public void RandomlyChangePropertyValues() => ValueTestHelpers.RandomlyChangePropertyValues(l => l.ActiveCount(i => i.Property > 50), l => l.Count(i => i.Property > 50), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, o => o.Property = RandomGenerator.GenerateRandomInteger());
Beispiel #3
0
 public void RandomlyChangePropertyValues() => ValueTestHelpers.RandomlyChangePropertyValues(l => l.ActiveFirstOrDefault(i => i.Property % 20 == 0), l => l.FirstOrDefault(i => i.Property % 20 == 0), () => new IntegerTestClass()
 {
     Property = RandomGenerator.GenerateRandomInteger()
 }, o => o.Property = RandomGenerator.GenerateRandomInteger());