private static void Main(string[] args) { var xLogPath = Path.Combine( Path.GetDirectoryName(typeof(Program).Assembly.Location), "WorkingDirectory", "TestRunnerLog.xml"); if (args.Length == 1) { xLogPath = args[0]; } var xEngineConfiguration = new DefaultEngineConfiguration(); var xOutputHandler = new OutputHandlerFullConsole(); var xEngine = new FullEngine(xEngineConfiguration); xEngine.SetOutputHandler(xOutputHandler); var xResult = xEngine.Execute(); try { xResult.SaveXmlToFile(xLogPath); Console.WriteLine("Log written to '{0}'.", xLogPath); } catch (Exception e) { xOutputHandler.UnhandledException(e); Console.ReadKey(true); } Console.WriteLine("Press any key to exit."); Console.ReadKey(true); }
public MainWindowViewModel(IEngineConfiguration aEngineConfiguration) { var xEngine = new FullEngine(aEngineConfiguration); xEngine.SetOutputHandler( new OutputHandler( m => TestRunnerLog += m + Environment.NewLine)); new Thread(() => xEngine.Execute()).Start(); }
public void TestKernel(Type aKernelType) { try { Directory.SetCurrentDirectory(Path.GetDirectoryName(typeof(KernelTests).Assembly.Location)); var xEngine = new FullEngine(new EngineConfiguration(aKernelType)); xEngine.SetOutputHandler(new TestOutputHandler()); Assert.IsTrue(xEngine.Execute().KernelTestResults[0].Result); } catch (AssertionException) { throw; } catch (Exception e) { Console.WriteLine("Exception occurred: " + e.ToString()); Assert.Fail(); } }
static void Main(string[] args) { FullEngine comands = new FullEngine(); comands.Run(); }
public static void Main() { Engine engine = new FullEngine(); engine.Run(); }