public void ConnectingTest() { if (!MessageQueue.Exists(Environment.MachineName + @"\private$\testConnecting")) { MessageQueue.Create(Environment.MachineName + @"\private$\testConnecting"); } if (!MessageQueue.Exists(Environment.MachineName + @"\private$\testConnectingSend")) { MessageQueue.Create(Environment.MachineName + @"\private$\testConnectingSend"); } if (!MessageQueue.Exists(Environment.MachineName + @"\private$\testConnectingRecive")) { MessageQueue.Create(Environment.MachineName + @"\private$\testConnectingRecive"); } Thread testThread = new Thread(testConnectThread); testThread.Start(); Assert.IsTrue(ProcessingMessage.Connecting(Environment.MachineName + @"\private$\testConnecting")); MessageQueue.Delete(@".\private$\testConnecting"); MessageQueue.Delete(@".\private$\testConnectingSend"); MessageQueue.Delete(@".\private$\testConnectingRecive"); }