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