コード例 #1
0
 public void Completed(RuntimeTestResult activeTest)
 {
     Debug.Log($"Completed: {activeTest.Name}: {activeTest.State}");
     if (activeTest.Error != null)
     {
         Debug.LogError(activeTest.Error);
     }
 }
コード例 #2
0
 private RuntimeTestResult Run(IRuntimeTest runtimeTest)
 {            
     try
     {
         //TODO: think of a way to streamline registering listeners, right now they are registere in the test, but unregistered in the runtime tester
         return runtimeTest.Run(PosApplication);
     }
     catch (Exception ex)
     {
         return RuntimeTestResult.Error(runtimeTest, ex.Message);
     }
     finally
     {
         PosApplication.MessagingService.UnregisterListener(runtimeTest);
     }
 }
コード例 #3
0
 public void Completed(RuntimeTestResult activeTest)
 {
     if (activeTest.State == RuntimeTestState.Success)
     {
         _passed += 1;
         _api.Log($"Test End: {activeTest.Name} OK", Color.green);
     }
     else
     {
         _failed += 1;
         _api.Log($"Test End: {activeTest.Name} FAILED", Color.red);
         if (activeTest.Error != null)
         {
             _api.Log(activeTest.Error.ToString(), Color.red);
         }
     }
 }
コード例 #4
0
 public void Started(RuntimeTestResult activeTest)
 {
     Debug.Log($"Started: {activeTest.Name}");
 }
コード例 #5
0
 public void Started(RuntimeTestResult activeTest)
 {
     _api.Log($"\nTest Start: {activeTest.Name}", Color.gray);
 }