예제 #1
0
 public TestNetwork()
 {
     var writeBuffer = new TestBuffer();
     var readBuffer = new TestBuffer();
     Server = new TestStream(writeBuffer, readBuffer);
     Client = new TestStream(readBuffer, writeBuffer);
 }
예제 #2
0
 public TestStream(TestBuffer readBuffer, TestBuffer writeBuffer)
 {
     _readBuffer = readBuffer;
     _writeBuffer = writeBuffer;
 }
예제 #3
0
 public TestStream()
 {
     _readBuffer = new TestBuffer();
     _writeBuffer = _readBuffer;
 }