More file stream options tests (#53982)
authorAdam Sitnik <adam.sitnik@gmail.com>
Sat, 26 Jun 2021 21:20:32 +0000 (23:20 +0200)
committerGitHub <noreply@github.com>
Sat, 26 Jun 2021 21:20:32 +0000 (17:20 -0400)
commit2abd4878e2e356389352a909baa15043399cd0ca
tree27e2895dffb2da12d6e525666b57c1ce74d187ed
parentaca3754a17de70453dd51d94b86dea54ae1b221b
More file stream options tests (#53982)

* add more tests

* StreamWriter and StreamReader require FileStreamOptions with necessary access

* allow for bufferSize == 0

* extend the test

* refactor the tests

* Revert "allow for bufferSize == 0"

This reverts commit f1259be18a3446c1b8939883f484cc28347c74cf.
src/libraries/System.IO.FileSystem/tests/FileStream/FileStreamOptions.cs
src/libraries/System.IO/tests/StreamReader/StreamReader.StringCtorTests.cs
src/libraries/System.IO/tests/StreamWriter/StreamWriter.StringCtorTests.cs
src/libraries/System.Private.CoreLib/src/System/IO/StreamReader.cs
src/libraries/System.Private.CoreLib/src/System/IO/StreamWriter.cs