Ejemplo n.º 1
0
        public void Test_Telemetry_LogWithWrongLevel()
        {
            // Assert
            AssertExtensions.DoesNotThrow(() =>
            {
                // Arrange
                var logger = new AppInsightsLogger("test", LogLevel.Warning);

                // Act
                logger.LogDebug("test");
                logger.Flush();
            });
        }
Ejemplo n.º 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();
            });
        }