Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public void TestNextInRange_ExceptionIsThrown_Helper()
 {
     System.Random random = new System.Random();
     random.NextInRange(0.5f, 0.3f);
 }