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; }
private static void Link(StreamMock left, StreamMock right) { left._partner = right; right._partner = left; }