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 }