Initialize() public static method

public static Initialize ( ) : void
return void
Ejemplo n.º 1
0
        private void RunTests(ITestFilter testFilter)
        {
            MissingAPILambdaFunctions.Initialize();
            ITestAssemblyRunner runner = null;

            if (Utils.IsIL2CPP)
            {
                runner = new NUnitTestAssemblyRunner(new UnityTestAssemblyBuilder());
            }
            else
            {
                runner = new NUnitTestAssemblyRunner(new DefaultTestAssemblyBuilder());
            }
            var currentAssembly = this.GetType().Assembly;
            var options         = new Dictionary <string, string>();
            var tests           = runner.Load(currentAssembly, options);
            var testListener    = new TestListener();
            var result          = runner.Run(testListener, testFilter);

            TestDriver.Instance.OnTestFinished(this.HttpClient, testListener.FailedTestsCases);
        }