public void Test_Telemetry_LogVerboseWithObject() { // Assert AssertExtensions.DoesNotThrow(() => { // Arrange var logger = new AppInsightsLogger("test", LogLevel.Debug); // Act logger.LogVerbose("test", new Test { PropA = "propA", PropB = 1, PropC = true, PropD = new SubItem { PropE = "propE", PropF = new List <int> { 1, 2, 3 } } }); logger.Flush(); }); }
public void Test_Telemetry_LogVerboseMessage() { // Assert AssertExtensions.DoesNotThrow(() => { // Arrange var logger = new AppInsightsLogger("test", LogLevel.Trace); // Act logger.LogVerbose("test"); logger.Flush(); }); }