diff --git a/LogicMonitor.Api.Test/Data/DataTests.cs b/LogicMonitor.Api.Test/Data/DataTests.cs index 18f0c9f6..0f3fd733 100644 --- a/LogicMonitor.Api.Test/Data/DataTests.cs +++ b/LogicMonitor.Api.Test/Data/DataTests.cs @@ -40,7 +40,7 @@ public async Task GetForecastGraphData() default) .ConfigureAwait(true); - forecastGraphData.TrainingGraphData.Lines.Should().HaveCount(1); + forecastGraphData.TrainingGraphData.Lines.Should().ContainSingle(); forecastGraphData.ForecastedGraphData.Lines.Should().HaveCount(3); } diff --git a/LogicMonitor.Api.Test/Settings/CollectorGroupTests.cs b/LogicMonitor.Api.Test/Settings/CollectorGroupTests.cs index 5e4cecfb..1defee8f 100644 --- a/LogicMonitor.Api.Test/Settings/CollectorGroupTests.cs +++ b/LogicMonitor.Api.Test/Settings/CollectorGroupTests.cs @@ -70,7 +70,7 @@ await LogicMonitorClient newCollectorGroupRefetch.Description.Should().NotBeNull(); newCollectorGroupRefetch.CustomProperties.Should().NotBeNull(); newCollectorGroupRefetch.CustomProperties.Should().NotBeNullOrEmpty(); - newCollectorGroupRefetch.CustomProperties.Should().HaveCount(1); + newCollectorGroupRefetch.CustomProperties.Should().ContainSingle(); newCollectorGroupRefetch.CustomProperties[0].Name.Should().Be("a"); newCollectorGroupRefetch.CustomProperties[0].Value.Should().Be("b");