示例#1
0
        public void Test_Telemetry_IsEnabled()
        {
            // Arrange
            var logger = new AppInsightsLogger("test", LogLevel.Trace);

            logger.BeginScope("test");
            logger.Flush();

            // Act/Assert
            Assert.True(logger.IsEnabled(LogLevel.Information));
        }