public void TestNextInRange() { System.Random random = new System.Random(); float a = random.NextInRange(0.3f, 0.5f); float b = random.NextInRange(0.3f, 0.5f); Assert.AreNotEqual(a, b); Assert.That(a, Is.InRange(0.3f, 0.5f)); Assert.That(b, Is.InRange(0.3f, 0.5f)); }
public void TestNextInRange_ExceptionIsThrown_Helper() { System.Random random = new System.Random(); random.NextInRange(0.5f, 0.3f); }