Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stream conformance tests for standalone streams #44069

Merged
merged 3 commits into from
Nov 3, 2020

Conversation

stephentoub
Copy link
Member

I previously added a stream test suite for streams that could be created in a connected fashion, such that writing to one stream yields data that can be read by another. That enabled testing of a bunch of streams like NetworkStream, SslStream, BufferedStream, etc., even FileStream when wrapped around a pipe.

This PR augments the suite for standalone streams that aren't connected in that fashion. This includes MemoryStream, FileStream for on-disk files, UnmanagedMemoryStream, MemoryMappedViewStream, etc. As with the previous PR, even though it's adding a lot of coverage, total line count is reduced, because it's consolidating tests that were unique to an individual test suite.

I also added a couple of tests to the existing connected suite.

cc: @geoffkizer, @carlossanlop, @jozkee

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants