public static void Main(string[] args) { // Workaround for MS bug: Assert(false) will not fire in debugger Debug.Listeners.Clear(); Debug.Listeners.Add(new DefaultTraceListener()); RunCoreTests.RunMenu(Menu); }
public static void Main(string[] args) { // Workaround for MS bug: Assert(false) will not fire in debugger Debug.Listeners.Clear(); Debug.Listeners.Add(new DefaultTraceListener()); if (RunCoreTests.RunMenu(Menu, args.Length > 0 ? args[0].GetEnumerator() : null) > 0) { // Let the outside world know that something // went wrong by setting the exit code to // '1'. This is particularly useful for // automated tests (CI). Environment.ExitCode = 1; } }