public void Constructor_Should_Throw_On_Non_Positive_Capacity(int capacity) { Action action = () => new BoundedBuffer(capacity); action.ShouldThrow<ArgumentOutOfRangeException>(); }