Exemplo n.º 1
0
        public void Integers_Next_SameOutput()
        {
            var integers = Dist.DistributedIntegers().GetEnumerator();

            for (var i = 0; i < Iterations; ++i)
            {
                integers.MoveNext();
                Assert.AreEqual(integers.Current, OtherDist.Next());
            }
        }
Exemplo n.º 2
0
        public void Integers_SameOutput()
        {
            var integers = Dist.DistributedIntegers().GetEnumerator();

            integers.MoveNext();
            for (var i = 0; i < Iterations; ++i, integers.MoveNext())
            {
                OtherDist.Next().ShouldBe(integers.Current);
            }
        }
Exemplo n.º 3
0
        public void Integers_ManyRand()
        {
            var integers = Dist.DistributedIntegers().GetEnumerator();

            integers.MoveNext();
            for (var i = 0; i < Iterations; ++i, integers.MoveNext())
            {
                Results[i] = integers.Current;
            }
            AssertDist(Dist);
        }