public Reset ( int newCapacity ) : void | ||
newCapacity | int | The new capacity for the buffer. |
return | void |
public void Reset_Should_Set_New_Capacity() { var buffer = new BoundedBuffer(100); buffer.Reset(64); buffer.FreeSpace.Should().Be(64); }
public void Reset_Should_Set_New_Capacity() { var buffer = new BoundedBuffer(100); buffer.Reset(64); buffer.FreeSpace.Should().Be(64); }