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(); }
public void Clear() { _snapshots.Clear(); _iterator.MoveToFirst(); }