Avoid "async void" tests (dotnet/corefx#39613)
authorStephen Toub <stoub@microsoft.com>
Fri, 19 Jul 2019 14:07:15 +0000 (10:07 -0400)
committerGitHub <noreply@github.com>
Fri, 19 Jul 2019 14:07:15 +0000 (10:07 -0400)
commitf9b59811ee49062a13b82c0799be381dddb10a6e
tree4921dab2fe07daf19f5a0f03c8338300236e50b3
parent0f25ce653e6304d126dfc1b6960de7b969bec8c4
Avoid "async void" tests (dotnet/corefx#39613)

Most of these are just because "async void" tests are rare and require special handling in xunit we needn't use.  But a few of these are plain wrong and were resulting in our not actually testing what we hoped to test.

Commit migrated from https://github.com/dotnet/corefx/commit/50d8c71bb6139f3c06dd820d6d757a095a9fe994
14 files changed:
src/libraries/Common/tests/System/IO/Compression/CompressionStreamUnitTestBase.cs
src/libraries/System.IO.Compression/tests/CompressionStreamUnitTests.Gzip.cs
src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.Specific.cs
src/libraries/System.IO/tests/TextReader/TextReaderTests.cs
src/libraries/System.IO/tests/TextWriter/TextWriterTests.cs
src/libraries/System.IO/tests/TextWriter/TextWriterTests.netcoreapp.cs
src/libraries/System.Net.Http/tests/FunctionalTests/DefaultCredentialsTest.cs
src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.Authentication.cs
src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs
src/libraries/System.Net.Http/tests/UnitTests/DigestAuthenticationTests.cs
src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamSniTest.cs
src/libraries/System.Net.Sockets/tests/FunctionalTests/SocketOptionNameTest.cs
src/libraries/System.Text.Json/tests/Serialization/Stream.ReadTests.cs
src/libraries/System.Threading.Channels/tests/ChannelTests.cs