コード例 #1
0
ファイル: TestDispatcher.cs プロジェクト: mrkvinter/uCvarc
 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();
 }
コード例 #2
0
ファイル: Dispatcher.cs プロジェクト: mrkvinter/CVARC-Unity
 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;
     }
 }
コード例 #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);
 }