示例#1
0
        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);
        }