public TestNetwork() { var writeBuffer = new TestBuffer(); var readBuffer = new TestBuffer(); Server = new TestStream(writeBuffer, readBuffer); Client = new TestStream(readBuffer, writeBuffer); }
public TestStream(TestBuffer readBuffer, TestBuffer writeBuffer) { _readBuffer = readBuffer; _writeBuffer = writeBuffer; }
public TestStream() { _readBuffer = new TestBuffer(); _writeBuffer = _readBuffer; }