예제 #1
0
        public BasicTests()
        {
            AppDomain.CurrentDomain.FirstChanceException += (o, e) => {
                System.Diagnostics.Trace.WriteLine("=== First chance exception occurred: " + e.Exception.ToString());
            };

            TaskScheduler.UnobservedTaskException += (o, e) => {
                System.Diagnostics.Trace.WriteLine("--- Task exception occurred: " + e.Exception.ToString());
            };

            engine = new Engine();

            System.Diagnostics.Debug.Listeners.Add(new DefaultTraceListener());

            // if this test throw - we are not 'admin' to run those test
            // Can not continue if not admin
        }
예제 #2
0
        public BasicTests()
        {
            AppDomain.CurrentDomain.FirstChanceException += (o, e) => {
                System.Diagnostics.Trace.WriteLine("=== First chance exception occurred: " + e.Exception.ToString());
            };

            TaskScheduler.UnobservedTaskException += (o, e) => {
                System.Diagnostics.Trace.WriteLine("--- Task exception occurred: " + e.Exception.ToString());
            };

            engine = new Engine();

            System.Diagnostics.Debug.Listeners.Add(new DefaultTraceListener());

            // if this test throw - we are not 'admin' to run those test
            // Can not continue if not admin
        }