| 1 |
// Licensed to the .NET Foundation under one or more agreements. |
| 2 |
// The .NET Foundation licenses this file to you under the MIT license. |
| 3 |
// See the LICENSE file in the project root for more information. |
| 4 |
|
| 5 |
using Xunit; |
| 6 |
|
| 7 |
namespace System.IO.Pipes.Tests |
| 8 |
{ |
| 9 |
public class AnonymousPipeTest_Write_ServerIn_ClientOut : PipeTest_Write |
| 10 |
{ |
| 11 |
protected override ServerClientPair CreateServerClientPair() |
| 12 |
{ |
| 13 |
ServerClientPair ret = new ServerClientPair(); |
| 14 |
ret.readablePipe = new AnonymousPipeServerStream(PipeDirection.In); |
| 15 |
ret.writeablePipe = new AnonymousPipeClientStream(PipeDirection.Out, ((AnonymousPipeServerStream)ret.readablePipe).ClientSafePipeHandle); |
| 16 |
return ret; |
| 17 |
} |
| 18 |
} |
| 19 |
|
| 20 |
public class AnonymousPipeTest_Write_ServerOut_ClientIn : PipeTest_Write |
| 21 |
{ |
| 22 |
protected override ServerClientPair CreateServerClientPair() |
| 23 |
{ |
| 24 |
ServerClientPair ret = new ServerClientPair(); |
| 25 |
ret.writeablePipe = new AnonymousPipeServerStream(PipeDirection.Out); |
| 26 |
ret.readablePipe = new AnonymousPipeClientStream(PipeDirection.In, ((AnonymousPipeServerStream)ret.writeablePipe).ClientSafePipeHandle); |
| 27 |
return ret; |
| 28 |
} |
| 29 |
} |
| 30 |
} |