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(); }
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; } }
/// <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); }