예제 #1
0
 public void GetLoggerTest_Performance()
 {
     NLogProvider logProvider = new NLogProvider();
     for (int i = 0; i < 100*1000; i++)
     {
         var logger = logProvider.GetLogger("abc");
         Assert.IsNotNull(logger);
     }
 }
예제 #2
0
 public void GetLoggerTest_ThreadSafe()
 {
     NLogProvider logProvider = new NLogProvider();
     Parallel.For(1, 20, x => Assert.IsNotNull(logProvider.GetLogger("abc")));
 }