Fix SslStreamStreamToStreamTest to exercise correct overloads (dotnet/corefx#36065)
authorStephen Toub <stoub@microsoft.com>
Fri, 15 Mar 2019 19:59:31 +0000 (15:59 -0400)
committerGitHub <noreply@github.com>
Fri, 15 Mar 2019 19:59:31 +0000 (15:59 -0400)
commitf6ec54a1f77b0b893fd2c01b9d0bef28794e4441
tree1164cb42194e3b6f4d31f2f6d85cf96182ca2442
parentadb7606fc73d4240122b832635f435c83e445059
Fix SslStreamStreamToStreamTest to exercise correct overloads (dotnet/corefx#36065)

The SslStreamStreamToStreamTest is set up as a base class from which three test classes derive, one for each of Async, Begin/End, and Sync.  But the base class isn't actually deferring to the derived types to customize most of the functionality being executed, namely read/write methods.  This PR fixes that, so that the base class properly exercises the relevant methods, customized to the base type.

Commit migrated from https://github.com/dotnet/corefx/commit/6a9fe42b8d236f9cb0e5cdede2f06dc7537dc933
src/libraries/System.Net.Security/tests/FunctionalTests/LoggingTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamNetworkStreamTest.cs
src/libraries/System.Net.Security/tests/FunctionalTests/SslStreamStreamToStreamTest.cs