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