public void ToArray_InitialCollectionSmallerThanCapacity_MatchesInitialCollection()
        {
            List <Guid> initialValues = Enumerable.Range(1, Random.Next(10, 100)).Select(n => Guid.NewGuid()).ToList();
            long        capacity      = initialValues.Count + (long)(Random.NextDouble() * (MaxCapacity - initialValues.Count));
            CyclicConcurrentQueue <Guid> cyclicConcurrentQueue = CreateCyclicConcurrentQueue(initialValues, capacity);

            CollectionAssert.AreEqual(initialValues.ToArray(), cyclicConcurrentQueue.ToArray());
        }
        public void ToArray_InitialCollectionLargerThanCapacity_MatchesEndPortionOfInitialCollection()
        {
            List <Guid> initialValues = Enumerable.Range(1, Random.Next(10, 100)).Select(n => Guid.NewGuid()).ToList();
            long        capacity      = Random.Next(5, initialValues.Count);
            CyclicConcurrentQueue <Guid> cyclicConcurrentQueue = CreateCyclicConcurrentQueue(initialValues, capacity);

            CollectionAssert.AreEqual(
                initialValues.Skip(initialValues.Count - (int)capacity).ToArray(),
                cyclicConcurrentQueue.ToArray());
        }