public void GetShellStreamTest() { DummyTcpSocket tcpSocket = new DummyTcpSocket(); AdbSocket socket = new AdbSocket(tcpSocket); var stream = socket.GetShellStream(); Assert.IsInstanceOfType(stream, typeof(ShellStream)); var shellStream = (ShellStream)stream; Assert.AreEqual(tcpSocket.OutputStream, shellStream.Inner); }
public void GetShellStreamTest() { DummyTcpSocket tcpSocket = new DummyTcpSocket(); AdbSocket socket = new AdbSocket(tcpSocket); var stream = socket.GetShellStream(); Assert.IsType <ShellStream>(stream); var shellStream = (ShellStream)stream; Assert.Equal(tcpSocket.OutputStream, shellStream.Inner); }
public void GetShellStreamTest() { DummyTcpSocket tcpSocket = new DummyTcpSocket(); AdbSocket socket = new AdbSocket(tcpSocket); var stream = socket.GetShellStream(); Assert.IsInstanceOfType(stream, typeof(ShellStream)); var shellStream = (ShellStream)stream; Assert.AreEqual(tcpSocket.InputStream, shellStream.Inner); }