21 references to LoggerMessageHelper
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Telemetry.Abstractions.Tests (9)
Logging\LoggerMessageHelperTests.cs (9)
20Assert.Equal(expected, LoggerMessageHelper.Stringify(enumerable));
26Assert.Equal("null", LoggerMessageHelper.Stringify((IEnumerable<KeyValuePair<string, string>>?)null));
32Assert.Equal("{\"One\"=\"Un\"}", LoggerMessageHelper.Stringify(d0));
39Assert.Equal("{\"One\"=\"Un\",\"Two\"=\"Deux\"}", LoggerMessageHelper.Stringify(d1));
46Assert.Equal("{null=\"Un\",\"Two\"=null}", LoggerMessageHelper.Stringify(d2));
54Assert.Equal("{\"Zero\"=\"0\",\"One\"=\"1\",\"Two\"=\"2\"}", LoggerMessageHelper.Stringify(d3));
62Assert.Equal("{\"0\"=\"Zero\",\"1\"=\"One\",\"2\"=\"Two\"}", LoggerMessageHelper.Stringify(d4));
68var lmp1 = LoggerMessageHelper.ThreadLocalState;
71var lmp2 = LoggerMessageHelper.ThreadLocalState;
Microsoft.Extensions.Telemetry.PerformanceTests (2)
Microsoft.Extensions.Telemetry.Tests (5)
Microsoft.Gen.Logging.Generated.Tests (1)