public void ClientListenerTcpStop() { //--------------------------------------------------------------------- //Setup //--------------------------------------------------------------------- server.Start(); Thread thread = new Thread(AcceptSocket); thread.Start(); TCP_Config config; config.address = "127.0.0.1"; config.port = 4512; ClientLibrary.ClientListenerTCP listener = new ClientLibrary.ClientListenerTCP(config); listener.Start(); //--------------------------------------------------------------------- //Run Test //--------------------------------------------------------------------- listener.Stop(); //--------------------------------------------------------------------- //Gather Output //--------------------------------------------------------------------- //--------------------------------------------------------------------- //Assert //--------------------------------------------------------------------- }
public void ClientListenerTcpConstructor() { //--------------------------------------------------------------------- //Setup //--------------------------------------------------------------------- TCP_Config config; config.address = "127.0.0.1"; config.port = 4510; ClientLibrary.ClientListenerTCP listener; //--------------------------------------------------------------------- //Run Test //--------------------------------------------------------------------- listener = new ClientLibrary.ClientListenerTCP(config); //--------------------------------------------------------------------- //Gather Output //--------------------------------------------------------------------- //--------------------------------------------------------------------- //Assert //--------------------------------------------------------------------- }