예제 #1
0
파일: Logger.cs 프로젝트: nlhans/Triton
        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);
        }
예제 #2
0
 protected void _Register(object overrider)
 {
     UnitTester.Register(overrider);
 }