Ejemplo n.º 1
0
        // #############################################################################################
        // static entrance (Main)
        // #############################################################################################
        static void Main(string[] args)
        {
            ALIB.Init(true, args);


            // create us
            AloxSamples samples = new AloxSamples();

            // do some release logging tests.
            Console.WriteLine("PRINT: Debug logging:");
            samples.DebugLogging();
            ALoxSampleReset();

            // do some release logging tests.
            Console.WriteLine("PRINT: Release logging:");
            samples.ReleaseLogging();
            ALoxSampleReset();

            // do some performance tests.
            Console.WriteLine("PRINT: Performance test (debug logging):");
            samples.PerformanceTest();
            ALoxSampleReset();

            // do some performance tests.
            Console.WriteLine("PRINT: Performance test (release logging):");
            samples.PerformanceTestRL();
            ALoxSampleReset();

            // test class TextFileLogger
            Console.WriteLine("PRINT: test class TextFileLogger:");
            samples.TextFileLogger();
            ALoxSampleReset();

            // test class terminal test (colors and styles)
            Console.WriteLine("PRINT: Colors (depending on detected terminal):");
            samples.ColorTest();
            ALoxSampleReset();

            Console.WriteLine("PRINT: Thats it!");

            // sample ALib report facility through ALox
            samples.SampleALibReport();

            ALIB.TerminationCleanUp();
        }