public void GetSingle_MaxIsTruncated_Exclusive()
 {
     TestRandom rand = new TestRandom();
     rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(10.0f));
     Assert.AreEqual(9.0f, rand.GetSingle(5f, 10f));
 }
 public void GetSingle_MinIsTruncated_Inclusive()
 {
     TestRandom rand = new TestRandom();
     rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(5.0f));
     Assert.AreEqual(6.0f, rand.GetSingle(6f, 10f));
 }
        public void GetSingle(System.Single target)
        {
            TestRandom rand = new TestRandom();
            rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(target));

            Assert.AreEqual(target, rand.GetSingle());
        }