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)); } }
public void GetDouble_NoArgs_RandomResult() { var target = new FastRandomRandomization (); Assert.AreNotEqual (target.GetDouble (), target.GetDouble ()); }