Example #1
0
        public void ClearElements()
        {
            // Arrange
            var collection = new PushOutCollection <int>(new int[] { 0, 1, 2 });

            // Act
            collection.Clear();

            // Assert
            Assert.Empty(collection);
        }
        public void Clear()
        {
            lock (_commandsWriteLock)
            {
                if (_commands == null)
                {
                    _commands = new PushOutCollection <string>(MaxCount);
                }
                else
                {
                    _commands.Clear();
                }
                _current = 0;
            }

            ScheduleSaveCommands();
        }
Example #3
0
 public void Clear()
 {
     _snapshots.Clear();
     _iterator.MoveToFirst();
 }