private static void StubReceive(ISocketConnectionProxy socket, int offset, int size, byte[] bytes)
 {
     A.CallTo(() => socket.Receive(A <byte[]> .Ignored, offset, size))
     .Invokes((byte[] buffer, int offsetArg, int sizeArg) => { bytes.CopyTo(buffer, offset); })
     .Returns(bytes.Length)
     .Once();
 }
Beispiel #2
0
 public SocketStreamReader(ISocketConnectionProxy socketConnection)
 {
     _socketConnection = socketConnection;
 }