public void DisposeTest() { DummyTcpSocket tcpSocket = new DummyTcpSocket(); AdbSocket socket = new AdbSocket(tcpSocket); Assert.IsTrue(socket.Connected); socket.Dispose(); Assert.IsFalse(socket.Connected); }
public void Disconnect() { OpenStreams.Clear(); _socket.Dispose(); }