A game about forced loneliness, made by TACStudios
1using System; 2using System.Collections; 3using System.Collections.Generic; 4using System.Linq; 5using NUnit.Framework.Interfaces; 6using NUnit.Framework.Internal; 7using UnityEditor.TestTools.TestRunner.Api; 8using UnityEngine.TestRunner.NUnitExtensions; 9using UnityEngine.TestTools.TestRunner; 10 11namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks.Events 12{ 13 internal class RunFinishedInvocationEvent : TestTaskBase 14 { 15 public override IEnumerator Execute(TestJobData testJobData) 16 { 17 if (testJobData.TestResults == null) 18 { 19 // Temporary workaround to ensure that we do not loose the non serializable results due to a test leaking a domain reload. 20 testJobData.TestResults = testJobData.editModeRunner.m_Runner.Result; 21 } 22 testJobData.editModeRunner.Dispose(); 23 24 testJobData.RunFinishedEvent.Invoke(testJobData.TestResults); 25 yield break; 26 } 27 } 28}