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