public void GetDouble_MaxIsTruncated_Exclusive() { TestRandom rand = new TestRandom(); rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(10.0)); Assert.AreEqual(9.0, rand.GetDouble(5, 10)); }
public void GetDouble_MinIsTruncated_Inclusive() { TestRandom rand = new TestRandom(); rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(5.0)); Assert.AreEqual(6.0, rand.GetDouble(6, 10)); }
public void GetDouble(System.Double target) { TestRandom rand = new TestRandom(); rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(target)); Assert.AreEqual(target, rand.GetDouble()); }