Beispiel #1
0
        internal override void _ExecuteTests()
        {
            LoggerConfiguration config = new LoggerConfiguration();

            config.Type = LoggingType.File;

            UnitTester.Test("Logtype set: FILE");
            UnitTester.Assert(config.IsLoggingFile);
            UnitTester.Assert(!config.IsLoggingConsole);
            UnitTester.Assert(!config.IsLoggingWindow);

            config.Type = LoggingType.Console;

            UnitTester.Test("Logtype set: CONSOLE");
            UnitTester.Assert(!config.IsLoggingFile);
            UnitTester.Assert(config.IsLoggingConsole);
            UnitTester.Assert(!config.IsLoggingWindow);

            config.Type = LoggingType.Window;

            UnitTester.Test("Logtype set: WINDOW");
            UnitTester.Assert(!config.IsLoggingFile);
            UnitTester.Assert(!config.IsLoggingConsole);
            UnitTester.Assert(config.IsLoggingWindow);
        }
Beispiel #2
0
 protected void _Register(object overrider)
 {
     UnitTester.Register(overrider);
 }