コード例 #1
0
        public void ClearRemovesAllItems()
        {
            //Arrange
            var deque = new ConcurrentDeque <Int32>(new[] { 1, 2, 3, 4 });

            //Act
            deque.Clear();

            //Assert
            Assert.True(deque.IsEmpty);
        }