9 references to LatencyRegistryServiceCollectionExtensions
Microsoft.Extensions.Telemetry.Abstractions.Tests (9)
Latency\LatencyRegistryExtensionsTests.cs (9)
17
() =>
LatencyRegistryServiceCollectionExtensions
.RegisterCheckpointNames(new ServiceCollection(), null!));
19
() =>
LatencyRegistryServiceCollectionExtensions
.RegisterCheckpointNames(null!, new string[0]));
21
() =>
LatencyRegistryServiceCollectionExtensions
.RegisterMeasureNames(null!, new string[0]));
23
() =>
LatencyRegistryServiceCollectionExtensions
.RegisterMeasureNames(new ServiceCollection(), null!));
25
() =>
LatencyRegistryServiceCollectionExtensions
.RegisterTagNames(null!, new string[0]));
27
() =>
LatencyRegistryServiceCollectionExtensions
.RegisterTagNames(new ServiceCollection(), null!));
33
Assert.Throws<ArgumentException>(() =>
LatencyRegistryServiceCollectionExtensions
.RegisterCheckpointNames(new ServiceCollection(), ""));
34
Assert.Throws<ArgumentException>(() =>
LatencyRegistryServiceCollectionExtensions
.RegisterMeasureNames(new ServiceCollection(), ""));
35
Assert.Throws<ArgumentException>(() =>
LatencyRegistryServiceCollectionExtensions
.RegisterTagNames(new ServiceCollection(), ""));