Beispiel #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.TestDisposeExceptionSafety_ColumnWriter();

                // 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);
        }
Beispiel #2
0
        public static int Main()
        {
            try
            {
                Console.WriteLine("Working directory: {0}", Environment.CurrentDirectory);

                AppDomain.CurrentDomain.UnhandledException += UncaughtExceptionHandler;

                //TestColumn.TestPrimitives();
                //TestParquetFileWriter.TestReadWriteParquetMultipleTasks();
                //TestColumnReader.TestHasNext();
                TestLogicalTypeRoundtrip.TestReaderWriteTypes(128, 2401, 1331);
                //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);
        }