public static void Main(string[] args) { NUnitTestClass.RunTests(); Application.Init(); #if (!DEBUG) try { AppDomain.CurrentDomain.UnhandledException += (sender, e) => HandleException(e.ExceptionObject); GLib.ExceptionManager.UnhandledException += (args) => HandleException(args.ExceptionObject); #endif MainWindow win; if (args.Length >= 1) { win = new MainWindow(args[0]); } else { win = new MainWindow(); } Application.Run(); #if (!DEBUG) } catch (Exception e) { HandleException(e); } #endif }
public static void RunTests() { var tester = new NUnitTestClass(); tester.TestTokenizer(); tester.TestDocumentation(); }
public static void Main(string[] args) { NUnitTestClass.RunTests(); Application.Init(); MainWindow win; if (args.Length >= 1) { win = new MainWindow(args[0]); } else { win = new MainWindow(); } win.Show(); Application.Run(); }