예제 #1
0
        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));
        }