62 references to MetricsAssert
InMemory.FunctionalTests (62)
BadHttpRequestTests.cs (7)
189
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
253
m =>
MetricsAssert
.Equal(ConnectionEndReason.InvalidRequestLine, m.Tags));
276
m =>
MetricsAssert
.Equal(ConnectionEndReason.InvalidHttpVersion, m.Tags));
363
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(reason, m.Tags));
436
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
505
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
563
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
ChunkedRequestTests.cs (1)
902
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.UnexpectedEndOfRequestContent, m.Tags));
Http2\Http2TestBase.cs (1)
430
MetricsAssert
.NoError(ConnectionTags);
Http2\TlsTests.cs (1)
80
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.InsufficientTlsVersion, m.Tags));
Http3\Http3ConnectionTests.cs (8)
191
MetricsAssert
.NoError(Http3Api.ConnectionTags);
221
MetricsAssert
.NoError(Http3Api.ConnectionTags);
248
MetricsAssert
.Equal(ConnectionEndReason.InvalidSettings, Http3Api.ConnectionTags);
268
MetricsAssert
.Equal(ConnectionEndReason.StreamCreationError, Http3Api.ConnectionTags);
290
MetricsAssert
.Equal(ConnectionEndReason.UnexpectedFrame, Http3Api.ConnectionTags);
315
MetricsAssert
.Equal(ConnectionEndReason.ClosedCriticalStream, Http3Api.ConnectionTags);
339
MetricsAssert
.NoError(Http3Api.ConnectionTags);
360
MetricsAssert
.Equal(ConnectionEndReason.ClosedCriticalStream, Http3Api.ConnectionTags);
Http3\Http3StreamTests.cs (3)
2036
MetricsAssert
.Equal(ConnectionEndReason.UnexpectedFrame, Http3Api.ConnectionTags);
2112
MetricsAssert
.Equal(ConnectionEndReason.UnexpectedFrame, Http3Api.ConnectionTags);
2142
MetricsAssert
.Equal(ConnectionEndReason.UnexpectedFrame, Http3Api.ConnectionTags);
Http3\Http3TimeoutTests.cs (9)
31
MetricsAssert
.Equal(ConnectionEndReason.KeepAliveTimeout, Http3Api.ConnectionTags);
48
MetricsAssert
.Equal(ConnectionEndReason.KeepAliveTimeout, Http3Api.ConnectionTags);
77
MetricsAssert
.Equal(ConnectionEndReason.KeepAliveTimeout, Http3Api.ConnectionTags);
123
MetricsAssert
.Equal(ConnectionEndReason.KeepAliveTimeout, Http3Api.ConnectionTags);
372
MetricsAssert
.Equal(ConnectionEndReason.MinRequestBodyDataRate, Http3Api.ConnectionTags);
416
MetricsAssert
.Equal(ConnectionEndReason.MinResponseDataRate, Http3Api.ConnectionTags);
570
MetricsAssert
.Equal(ConnectionEndReason.MinRequestBodyDataRate, Http3Api.ConnectionTags);
625
MetricsAssert
.Equal(ConnectionEndReason.MinRequestBodyDataRate, Http3Api.ConnectionTags);
681
MetricsAssert
.Equal(ConnectionEndReason.MinRequestBodyDataRate, Http3Api.ConnectionTags);
KeepAliveTimeoutTests.cs (6)
53
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.KeepAliveTimeout, m.Tags));
86
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
131
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
176
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
201
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.KeepAliveTimeout, m.Tags));
244
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
MaxRequestBodySizeTests.cs (2)
155
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.MaxRequestBodySizeExceeded, m.Tags));
409
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.MaxRequestBodySizeExceeded, m.Tags));
MaxRequestLineSizeTests.cs (2)
52
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
80
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.InvalidRequestLine, m.Tags));
RequestBodyTimeoutTests.cs (3)
93
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.MinRequestBodyDataRate, m.Tags));
146
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.ServerTimeout, m.Tags));
220
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.MinRequestBodyDataRate, m.Tags));
RequestHeaderLimitsTests.cs (4)
50
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
87
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
115
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.MaxRequestHeadersTotalSizeExceeded, m.Tags));
144
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.MaxRequestHeaderCountExceeded, m.Tags));
RequestHeadersTimeoutTests.cs (4)
49
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.RequestHeadersTimeout, m.Tags));
85
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
114
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.RequestHeadersTimeout, m.Tags));
148
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.RequestHeadersTimeout, m.Tags));
RequestTests.cs (2)
1229
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.UnexpectedEndOfRequestContent, m.Tags));
2282
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.TlsNotSupported, m.Tags));
ResponseTests.cs (9)
210
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.WriteCanceled, m.Tags));
708
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
988
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.ResponseContentLengthMismatch, m.Tags));
1026
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.ResponseContentLengthMismatch, m.Tags));
2466
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
2668
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.NoError(m.Tags));
2713
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.ErrorAfterStartingResponse, m.Tags));
2758
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.ErrorAfterStartingResponse, m.Tags));
2841
Assert.Collection(connectionDuration.GetMeasurementSnapshot(), m =>
MetricsAssert
.Equal(ConnectionEndReason.AbortedByApp, m.Tags));