Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.IO.Pipes/tests/PipeTest.Write.cs')
-rw-r--r--src/System.IO.Pipes/tests/PipeTest.Write.cs11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/System.IO.Pipes/tests/PipeTest.Write.cs b/src/System.IO.Pipes/tests/PipeTest.Write.cs
index 2a97ce3608..9d7d4dc9fc 100644
--- a/src/System.IO.Pipes/tests/PipeTest.Write.cs
+++ b/src/System.IO.Pipes/tests/PipeTest.Write.cs
@@ -12,8 +12,10 @@ namespace System.IO.Pipes.Tests
/// Tests that cover Write and WriteAsync behaviors that are shared between
/// AnonymousPipes and NamedPipes
/// </summary>
- public abstract class PipeTest_Write : PipeTestBase
+ public abstract partial class PipeTest_Write : PipeTestBase
{
+ public virtual bool SupportsBidirectionalReadingWriting => false;
+
[Fact]
public void WriteWithNullBuffer_Throws_ArgumentNullException()
{
@@ -117,8 +119,13 @@ namespace System.IO.Pipes.Tests
}
[Fact]
- public virtual void ReadOnWriteOnlyPipe_Throws_NotSupportedException()
+ public void ReadOnWriteOnlyPipe_Throws_NotSupportedException()
{
+ if (SupportsBidirectionalReadingWriting)
+ {
+ return;
+ }
+
using (ServerClientPair pair = CreateServerClientPair())
{
PipeStream pipe = pair.writeablePipe;