Skip to content

Conversation

@vbreuss
Copy link
Member

@vbreuss vbreuss commented Oct 22, 2024

Add the following methods for Stream:

  • IsReadable() / IsNotReadable()
  • IsWritable() / IsNotWritable()
  • IsSeekable() / IsNotSeekable()
  • IsReadOnly() / IsNotReadOnly()
  • IsWriteOnly() / IsNotWriteOnly()
  • HasLength(long) / DoesNotHaveLength(long)
  • HasPosition(long) / DoesNotHavePosition(long)

@vbreuss vbreuss added the enhancement New feature or request label Oct 22, 2024
@vbreuss vbreuss self-assigned this Oct 22, 2024
@vbreuss vbreuss enabled auto-merge (squash) October 22, 2024 14:03
@vbreuss vbreuss merged commit bd67bce into main Oct 22, 2024
7 of 8 checks passed
@vbreuss vbreuss deleted the topic/add-stream-support branch October 22, 2024 14:04
vbreuss added a commit that referenced this pull request Oct 25, 2024
Fixes #47 

Change the syntax to add a `.Should()` in between so that the overload
resolution can rely on extension methods.
Also adapt all expectations to be grammatically correct (e.g. Is -> Be,
Has -> Have, ...)

*Note: also includes the changes from #46*:
> After #45, also add support for `BufferedStream` with the following
methods:
> - `HasBufferSize(int)` / `DoesNotHaveBufferSize(int)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants