コード例 #1
0
        public void Test_Telemetry_LogWithWrongLevel()
        {
            // Assert
            AssertExtensions.DoesNotThrow(() =>
            {
                // Arrange
                var logger = new AppInsightsLogger("test", LogLevel.Warning);

                // Act
                logger.LogDebug("test");
                logger.Flush();
            });
        }
コード例 #2
0
        public void Test_Telemetry_LogWarningDebug()
        {
            // Assert
            AssertExtensions.DoesNotThrow(() =>
            {
                // Arrange
                var logger = new AppInsightsLogger("test", LogLevel.Trace);

                // Act
                logger.LogDebug(new Exception());
                logger.Flush();
            });
        }