public void ShouldFilter_WhenNonRequestTelemetry_ReturnsFalse() { // Arrange var telemetryItem = new DependencyTelemetry(); var criteria = new SuccessfulProbeFilterCriteria(); // Act var result = criteria.ShouldFilter(telemetryItem); // Assert Assert.False(result); }
public void Test(string responseCode, string actionName, bool shouldFilter, params string[] healthCheckPaths) { // Arrange var telemetryItem = new RequestTelemetry { Name = actionName, ResponseCode = responseCode }; var criteria = new SuccessfulProbeFilterCriteria(healthCheckPaths); // Act var result = criteria.ShouldFilter(telemetryItem); // Assert Assert.Equal(shouldFilter, result); }