5 references to WaitForMeasurementsAsync
Microsoft.Extensions.Diagnostics.Testing.Tests (5)
Metrics\MetricCollectorTests.cs (5)
312
var wait = collector.
WaitForMeasurementsAsync
(2, TimeSpan.FromSeconds(1));
321
wait = collector.
WaitForMeasurementsAsync
(1, TimeSpan.FromSeconds(1));
341
await Assert.ThrowsAnyAsync<OperationCanceledException>(() => collector.
WaitForMeasurementsAsync
(1, TimeSpan.FromMilliseconds(50)));
356
var wait = collector.
WaitForMeasurementsAsync
(2, TimeSpan.FromSeconds(1));
367
await Assert.ThrowsAsync<ObjectDisposedException>(async () => await collector.
WaitForMeasurementsAsync
(1, TimeSpan.FromSeconds(1)));