Unit tests for the ExcludeMetricsLoggingInterceptor to ensure 100% code coverage. Verifies that specific requests (favicon and metrics) are silenced, while keeping standard requests logged.
More...
|
|
async Task | OnRequestAsync_EvaluatesPathsCorrectly (string path, HttpLoggingFields expectedFields) |
| | Verifies that any request to /favicon.ico or /metrics disables logging immediately upon request.
|
| |
|
async Task | OnResponseAsync_DoesNothing_ExecutesSuccessfully () |
| | Verifies that the OnResponseAsync method executes without errors and does not alter the context.
|
| |
Unit tests for the ExcludeMetricsLoggingInterceptor to ensure 100% code coverage. Verifies that specific requests (favicon and metrics) are silenced, while keeping standard requests logged.
The documentation for this class was generated from the following file:
- TelemetryApi.Tests/ExcludeMetricsLoggingInterceptorTests.cs