27 references to AssertLog
Microsoft.AspNetCore.ResponseCompression.Tests (27)
ResponseCompressionMiddlewareTest.cs (27)
54AssertLog(logMessages.Single(), LogLevel.Debug, "No response compression available, the Accept-Encoding header is missing or invalid.");
110AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
111AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
112AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found.");
121AssertLog(logMessages.Single(), LogLevel.Debug, "No response compression available, the Accept-Encoding header is missing or invalid.");
194AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
196AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, $"Response compression is not enabled for the Content-Type '{expected}'.");
282AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
283AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, $"Response compression is not enabled for the Content-Type '{contentType}'.");
359AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
360AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
361AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found.");
384AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
385AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
386AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found.");
396AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
397AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression is not enabled for the Content-Type 'text/custom'.");
410AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
411AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression disabled due to the Content-Range header.");
428AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
429AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression disabled due to the Content-Encoding header.");
488AssertLog(logMessages.Skip(1).Single(), LogLevel.Debug, "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps.");
551AssertLog(logMessages.Skip(1).Single(), LogLevel.Debug, "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps.");
610AssertLog(logMessages.Skip(1).Single(), LogLevel.Debug, "No response compression available for HTTPS requests. See ResponseCompressionOptions.EnableForHttps.");
1339AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
1340AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
1341AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, $"The response will be compressed with '{provider}'.");