Ejemplo n.º 1
0
        public void Method_NewTestServer()
        {
            Boolean flag = true;

            string uri = "blah://localhost:4040";

            MainTest1Client client = new MainTest1Client();

            RemoteTest1Server server;

            try
            {
                server = Test1Helper.NewServer(uri, null, client);
                server._StartAndWaitUp(4000);

                // Insert your code here
                // -----------------------------------------------------------------------

                server._Stop();
            }
            catch (Exception e)
            {
                flag = false;
                Console.WriteLine(e);
                Assert.IsTrue(flag);
            }

            Assert.IsTrue(flag);
        }
Ejemplo n.º 2
0
 public void Run()
 {
     try
     {
         MainTest1Client.Main(null);
     }
     catch (Exception e)
     {
         Console.WriteLine(e);
         myHasErrors = true;
     }
     TestMainTest1Client.commonLock.Set(TestMainTest1Client.CLIENT_STARTED);
 }