コード例 #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
        }
コード例 #2
0
ファイル: NUnitTestClass.cs プロジェクト: turbo3001/LynnaLab
        public static void RunTests()
        {
            var tester = new NUnitTestClass();

            tester.TestTokenizer();
            tester.TestDocumentation();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: turbo3001/LynnaLab
        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();
        }