static TestRunnerApiListener() { _testRunnerApi = ScriptableObject.CreateInstance <TestRunnerApi>(); _testRunnerCallbacks = new TestRunnerCallbacks(); _testRunnerApi.RegisterCallbacks(_testRunnerCallbacks); }
static TestRunnerApiListener() { if (!VisualStudioEditor.IsEnabled) { return; } _testRunnerApi = ScriptableObject.CreateInstance <TestRunnerApi>(); _testRunnerCallbacks = new TestRunnerCallbacks(); _testRunnerApi.RegisterCallbacks(_testRunnerCallbacks); }