GlobalGameJame/Library/PackageCache/com.unity.test-framework@1.1.9/UnityEditor.TestRunner/TestRunner/Callbacks/RerunCallbackInitializer.cs
JonatanRek bea2dce063 Initial
test
2020-01-31 16:10:04 +01:00

18 lines
490 B
C#

using UnityEngine;
using UnityEditor.TestTools.TestRunner.Api;
namespace UnityEditor.TestTools.TestRunner
{
[InitializeOnLoad]
static class RerunCallbackInitializer
{
static RerunCallbackInitializer()
{
var testRunnerApi = ScriptableObject.CreateInstance<TestRunnerApi>();
var rerunCallback = ScriptableObject.CreateInstance<RerunCallback>();
testRunnerApi.RegisterCallbacks<RerunCallback>(rerunCallback);
}
}
}