Пример #1
0
        public static int Main()
        {
            try
            {
                Console.WriteLine("Working directory: {0}", Environment.CurrentDirectory);

                AppDomain.CurrentDomain.UnhandledException += UncaughtExceptionHandler;

                //TestColumn.TestPrimitives();
                //TestParquetFileWriter.TestReadWriteParquetMultipleTasks();
                //TestColumnReader.TestHasNext();
                //TestLogicalTypeRoundtrip.TestRoundTrip(128, 2401, 1331, useDictionaryEncoding: true);
                //TestPhysicalTypeRoundtrip.TestReaderWriteTypes();
                //TestParquetFileReader.TestReadFileCreateByPython();
                //TestParquetFileReader.TestFileHandleHasBeenReleased();
                //TestParquetFileWriter.TestWriteLongString();
                //TestManagedRandomAccessFile.TestWriteException();
                //TestAadPrefixVerifier.TestOwnership();
                //TestEncryption.TestNoMatchingKeyMetadata();
                TestParquetFileWriter.TestProperties();
                //new TestMemoryLeaks().StressTestProcessMemory();

                // Ensure the finalizers are executed, so we can check whether they throw.
                GC.Collect();
                GC.WaitForPendingFinalizers();

                AppDomain.CurrentDomain.UnhandledException -= UncaughtExceptionHandler;

                return(0);
            }

            catch (Exception exception)
            {
                var colour = Console.ForegroundColor;

                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("ERROR: {0}", exception);
                Console.ForegroundColor = colour;
            }

            return(1);
        }
Пример #2
0
        public static int Main()
        {
            try
            {
                Console.WriteLine("Working directory: {0}", Environment.CurrentDirectory);

                AppDomain.CurrentDomain.UnhandledException += UncaughtExceptionHandler;

                //TestParquetFileWriter.TestReadWriteParquetMultipleTasks();
                //TestColumnReader.TestHasNext();
                //TestLogicalTypeRoundtrip.TestReaderWriteTypes();
                //TestPhysicalTypeRoundtrip.TestReaderWriteTypes();
                //TestParquetFileReader.TestReadFileCreateByPython();
                //TestParquetFileReader.TestFileHandleHasBeenReleased();
                TestParquetFileWriter.TestWriteLongString();

                // Ensure the finalizers are executed, so we can check whether they throw.
                GC.Collect();
                GC.WaitForPendingFinalizers();

                AppDomain.CurrentDomain.UnhandledException -= UncaughtExceptionHandler;

                return(0);
            }

            catch (Exception exception)
            {
                var colour = Console.ForegroundColor;

                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("ERROR: {0}", exception);
                Console.ForegroundColor = colour;
            }

            return(1);
        }