A game about forced loneliness, made by TACStudios
1using System;
2using System.Collections;
3using UnityEngine.TestTools.TestRunner;
4
5namespace UnityEditor.TestTools.TestRunner.TestRun.Tasks
6{
7 internal class CleanupTestControllerTask : TestTaskBase
8 {
9 public CleanupTestControllerTask()
10 {
11 RunOnCancel = true;
12 RunOnError = ErrorRunMode.RunAlways;
13 }
14
15 public override IEnumerator Execute(TestJobData testJobData)
16 {
17 if (testJobData.PlaymodeTestsController == null)
18 {
19 yield break;
20 }
21
22 testJobData.PlaymodeTestsController.Cleanup();
23 }
24 }
25}