public void GetBinary_MaxTruncates_Exclusive()
        {
            TestRandom rand = new TestRandom();
            rand.ByteArrayQueue.Enqueue(new byte[] { 1, 2, 3, 4 });
            rand.IntQueue.Enqueue(5);

            CollectionAssert.AreEqual(new byte[] { 1, 2, 3, 4 }, rand.GetBinary(3, 5));
        }
        public void GetBinaryTests(int min, int max, int length, byte[] data)
        {
            TestRandom rand = new TestRandom();
            rand.ByteArrayQueue.Enqueue(data);
            rand.IntQueue.Enqueue(length);

            CollectionAssert.AreEqual(data, rand.GetBinary(min, max));
        }
        public void GetBinary_MinTruncates_Inclusive()
        {
            TestRandom rand = new TestRandom();
            rand.ByteArrayQueue.Enqueue(new byte[] { 0, 1, 2 });
            rand.IntQueue.Enqueue(2);

            CollectionAssert.AreEqual(new byte[] { 0, 1, 2 }, rand.GetBinary(3, 4));
        }