public void GetInt64_MaxIsTruncated_Exclusive() { TestRandom rand = new TestRandom(); rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(10L)); Assert.AreEqual(9L, rand.GetInt64(5, 10)); }
public void GetInt64_MinIsTruncated_Inclusive() { TestRandom rand = new TestRandom(); rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(5L)); Assert.AreEqual(6L, rand.GetInt64(6, 10)); }
public void GetInt64(System.Int64 target) { TestRandom rand = new TestRandom(); rand.ByteArrayQueue.Enqueue(System.BitConverter.GetBytes(target)); Assert.AreEqual(target, rand.GetInt64()); }