25 references to WaitForMeasurementsAsync
Aspire.Confluent.Kafka.Tests (16)
Aspire8MetricsTests.cs (16)
64
collectorNetworkTx.
WaitForMeasurementsAsync
(statistics.Count),
65
collectorNetworkTransmitted.
WaitForMeasurementsAsync
(statistics.Count),
66
collectorNetworkRx.
WaitForMeasurementsAsync
(statistics.Count),
67
collectorNetworkReceived.
WaitForMeasurementsAsync
(statistics.Count),
68
collectorMessageTx.
WaitForMeasurementsAsync
(statistics.Count),
69
collectorMessageTransmitted.
WaitForMeasurementsAsync
(statistics.Count),
70
collectorMessageRx.
WaitForMeasurementsAsync
(statistics.Count),
71
collectorMessageReceived.
WaitForMeasurementsAsync
(statistics.Count)
179
collectorNetworkTx.
WaitForMeasurementsAsync
(statistics.Count),
180
collectorNetworkTransmitted.
WaitForMeasurementsAsync
(statistics.Count),
181
collectorNetworkRx.
WaitForMeasurementsAsync
(statistics.Count),
182
collectorNetworkReceived.
WaitForMeasurementsAsync
(statistics.Count),
183
collectorMessageTx.
WaitForMeasurementsAsync
(statistics.Count),
184
collectorMessageTransmitted.
WaitForMeasurementsAsync
(statistics.Count),
185
collectorMessageRx.
WaitForMeasurementsAsync
(statistics.Count),
186
collectorMessageReceived.
WaitForMeasurementsAsync
(statistics.Count)
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
258
await
WaitForMeasurementsAsync
(minCount, cancellationTokenSource.Token).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Testing.Tests (8)
Metrics\MetricCollectorTests.cs (8)
245
await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.
WaitForMeasurementsAsync
(-1));
246
await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.
WaitForMeasurementsAsync
(0));
250
var wait = collector.
WaitForMeasurementsAsync
(2);
265
wait = collector.
WaitForMeasurementsAsync
(1);
284
var wait = collector.
WaitForMeasurementsAsync
(1, cts.Token);
309
await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.
WaitForMeasurementsAsync
(-1));
310
await Assert.ThrowsAsync<ArgumentOutOfRangeException>(async () => await collector.
WaitForMeasurementsAsync
(0));
366
await Assert.ThrowsAsync<ObjectDisposedException>(async () => await collector.
WaitForMeasurementsAsync
(1));