public void Building_Booleans() { const int seed = 20; var builder = new Builder.Builder(seed); var expected = new List <bool>(); const int total = 2000; for (var i = 0; i < total; i++) { expected.Add(builder.Bool()); } var result = new Builder.Builder(seed) .Observable(b => b.Bool()) .Take(total) .ToListObservable(); Assert.IsTrue(result.SequenceEqual(expected)); }
public void Building_Doubles() { const int seed = 20; var builder = new Builder.Builder(seed); var expected = new List <double>(); const int total = 2000; const int max = 1000; const int min = 100; for (var i = 0; i < total; i++) { expected.Add(builder.Double(min, max)); } var result = new Builder.Builder(seed) .Observable(b => b.Double(min, max)) .Take(total) .ToListObservable(); Assert.IsTrue(result.SequenceEqual(expected)); }