public void GetDouble_Range_RandomInRangeResult()
        {
            var target = new BasicRandomization ();

            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));
            }
        }
Ejemplo n.º 2
0
        public void GetDouble_NoArgs_RandomResult()
        {
            var target = new BasicRandomization();

            Assert.AreNotEqual(target.GetDouble(), target.GetDouble());
        }