예제 #1
0
 private static void SendVmTerminatingMessage(ITcpServer server, int port)
 {
     var client = new NetClient(new ClientFeedback());
     client.Connect("127.0.0.1", port);
     client.SendAndWait(new VMTerminating(server.Port));
     client.Disconnect();
 }
예제 #2
0
 private static void SendVmInitializedMessage(Guid correlationId, ITcpServer server, int port)
 {
     var client = new NetClient(new ClientFeedback());
     client.Connect("127.0.0.1", port);
     Logger.WriteDebug(string.Format("About to send VMInitializedMessage for 127.0.0.1:{0}", server.Port));
     client.SendAndWait(new VMInitializedMessage(correlationId, Process.GetCurrentProcess().Id, server.Port, _engine.GetNUnitTestRunner(), _engine.GetMSTestRunner(), _engine.IsLoggingEnabled(), _engine.StartedPaused));
     client.Disconnect();
 }