Beispiel #1
0
        private static int RunTests(string[] args)
        {
            var arguments       = new Arguments(args);
            var runSettingsFile = new RunSettingsFile(arguments);
            var testRunner      = new TestRunner(arguments, runSettingsFile);

            var exitCode = testRunner.Run();

            if (exitCode == 0)
            {
                testRunner.CopyOutputFile(arguments.AssemblyToTest.Replace(".dll", string.Empty) + ".trx");
            }

            return(exitCode);
        }
Beispiel #2
0
 public TestRunner(Arguments arguments, RunSettingsFile runSettingsFile)
 {
     _runSettingsFile = runSettingsFile;
     _arguments       = arguments;
 }