Ejemplo n.º 1
0
        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
        }
Ejemplo n.º 2
0
        public static void RunTests()
        {
            var tester = new NUnitTestClass();

            tester.TestTokenizer();
            tester.TestDocumentation();
        }
Ejemplo n.º 3
0
        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();
        }