示例#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);
 }