コード例 #1
0
        public void GetDouble_Range_RandomInRangeResult()
        {
            var target = new FastRandomRandomization();

            FlowAssert.IsAtLeastOneAttemptOk(100, () => {
                Assert.IsTrue(target.GetDouble(0, 2.2) < 1);
            });

            FlowAssert.IsAtLeastOneAttemptOk(1000, () => {
                Assert.IsTrue(target.GetDouble(0, 2.2) > 2.1);
            });

            for (int i = 0; i < 100; i++)
            {
                Assert.AreNotEqual(2.3, target.GetDouble(0, 2.2));
            }
        }
コード例 #2
0
        public void GetDouble_NoArgs_RandomResult()
        {
            var target = new FastRandomRandomization();

            Assert.AreNotEqual(target.GetDouble(), target.GetDouble());
        }
コード例 #3
0
 public void FastRandom_GetDouble()
 {
     _fastRandom.GetDouble();
 }