Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }