public void Test_Telemetry_LogWithWrongLevel() { // Assert AssertExtensions.DoesNotThrow(() => { // Arrange var logger = new AppInsightsLogger("test", LogLevel.Warning); // Act logger.LogDebug("test"); logger.Flush(); }); }
public void Test_Telemetry_LogWarningDebug() { // Assert AssertExtensions.DoesNotThrow(() => { // Arrange var logger = new AppInsightsLogger("test", LogLevel.Trace); // Act logger.LogDebug(new Exception()); logger.Flush(); }); }