10 references to Messages
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (10)
AddressBinderTests.cs (2)
193
var log = Assert.Single(logger.
Messages
);
221
var log = Assert.Single(logger.
Messages
);
KestrelServerTests.cs (3)
152
var warning = testLogger.
Messages
.Single(log => log.LogLevel == LogLevel.Warning);
211
return (testLogger.
Messages
.Where(log => log.EventId == 64), testLogger.
Messages
.Where(log => log.EventId == 65));
src\Servers\Kestrel\shared\test\TestApplicationErrorLogger.cs (4)
33
public int TotalErrorsLogged =>
Messages
.Count(message => message.LogLevel == LogLevel.Error);
35
public int CriticalErrorsLogged =>
Messages
.Count(message => message.LogLevel == LogLevel.Critical);
37
public int ApplicationErrorsLogged =>
Messages
.Count(message => message.EventId.Id == ApplicationErrorEventId);
105
Messages
.Enqueue(logMessage);
src\Servers\Kestrel\shared\test\TestApplicationErrorLoggerLoggedTest.cs (1)
18
public ConcurrentQueue<LogMessage> LogMessages => TestApplicationErrorLogger.
Messages
;