Пример #1
0
        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));
        }