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()); } }
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); } }
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); }