public Result ExecuteInDelegate(KataraiSettings settings, string shadowLocation)
        {
            var newPlayerAssemblyPath = ShadowCopyPlayerAssembly(shadowLocation, settings.PlayerPath);
            var runner = new Runner.Runner(settings.KataPath, newPlayerAssemblyPath, newPlayerAssemblyPath);

            return(runner.Run());
        }
Exemple #2
0
        static void RunTests(string[] inputs, string reporterName)
        {
            if (testsRunning)
            {
                return;
            }

            testsRunning = true;

            AbstractReporter reporter = CreateReporter(reporterName);

            Runner.Runner  runner = new Runner.Runner(reporter);
            AssemblyLoader loader = new AssemblyLoader(runner);

            foreach (string assemblyPath in inputs)
            {
                loader.Load(assemblyPath);
            }

            runner.Run();

            testsRunning = false;
        }