Exemplo n.º 1
0
 static void ExecuteTest(string testName, ICvarcTest test, UnityAsserter asserter, NetworkData networkInfo)
 {
     try
     {
         test.Run(networkInfo, asserter);
         asserter.DebugOkMessage();
     }
     catch (Exception e)
     {
         asserter.Fail(e.GetType().Name + " " + e.Message);
     }
     lock (LastTestExecution)
     {
         LastTestExecution[testName] = !asserter.Failed;
     }
     Dispatcher.SetGameOver();
 }
Exemplo n.º 2
0
 static void ExecuteTest(string testName, ICvarcTest test, UnityAsserter asserter)
 {
     try
     {
         test.Run(WaitingNetworkServer, asserter);
     }
     catch (Exception e)
     {
         asserter.Fail(e.GetType().Name + " " + e.Message);
     }
     asserter.DebugOkMessage();
     lock (LastTestExecution)
     {
         LastTestExecution[testName] = !asserter.Failed;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// The entry point for a client that performs a test
 /// </summary>
 /// <param name="test"></param>
 /// <param name="asserter"></param>
 /// <param name="holder"></param>
 void SelfTestClientThread(ICvarcTest test, IAsserter asserter, NetworkServerData holder)
 {
     holder.WaitForServer();
     test.Run(holder, asserter);
 }