public void GetFloat_Range_RandomInRangeResult() { var target = new BasicRandomization(); FlowAssert.IsAtLeastOneAttemptOk(100, () => { Assert.IsTrue(target.GetFloat(0, 2.2f) < 1); }); FlowAssert.IsAtLeastOneAttemptOk(1000, () => { Assert.IsTrue(target.GetFloat(0, 2.2f) > 2.1); }); for (int i = 0; i < 100; i++) { Assert.AreNotEqual(2.3, target.GetFloat(0, 2.2f)); } }
public void GetFloat_NoArgs_RandomResult() { var target = new BasicRandomization(); Assert.AreNotEqual(target.GetFloat(), target.GetFloat()); }
public void Basic_GetFloat() { _basic.GetFloat(); }