static BaseTestClass() { AppDomain.CurrentDomain.UnhandledException += (sender, e) => { // Write to stdout because stderr does not show up in the test output Console.WriteLine($"Unhandled exception: {e.ExceptionObject}"); }; GlobalBase.AssemblyInit(); RootDir = TestCommon.GetRepoRoot(); DataDir = Path.Combine(RootDir, "test", "data"); }
static BaseTestClass() { // specific to use tls 1.2 as https://aka.ms/mlnet-resources/ only accpets tls 1.2 or newer ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; AppDomain.CurrentDomain.UnhandledException += (sender, e) => { // Write to stdout because stderr does not show up in the test output Console.WriteLine($"Unhandled exception: {e.ExceptionObject}"); }; GlobalBase.AssemblyInit(); RootDir = TestCommon.GetRepoRoot(); DataDir = Path.Combine(RootDir, "test", "data"); }
static BaseTestClass() { GlobalBase.AssemblyInit(); RootDir = GetRepoRoot(); DataDir = Path.Combine(RootDir, "test", "data"); }