Beispiel #1
0
        public static void Create(out Stream serverStream, out Stream clientStream)
        {
            var server = new StreamMock();
            var client = new StreamMock();

            Link(server, client);
            serverStream = server;
            clientStream = client;
        }
Beispiel #2
0
 private static void Link(StreamMock left, StreamMock right)
 {
     left._partner  = right;
     right._partner = left;
 }