Пример #1
0
        public void CopyToCopiesItems()
        {
            Int32[] array = { 0, 1, 2 };
            var     deque = new ConcurrentDeque <Int32>(array);

            var copy = new Int32[3];

            deque.CopyTo(copy, 0);

            Assert.AreEqual(array, copy);
        }
Пример #2
0
        public void CopyTo_CopiesItems()
        {
            //Arrange
            int[] array = { 0, 1, 2 };
            var   deque = new ConcurrentDeque <int>(array);

            //Act
            var copy = new int[3];

            deque.CopyTo(copy, 0);

            //Assert
            Assert.Equal(array, copy);
        }