From f6f7c0644bf25ac5e18220dcee476ae50cff965f Mon Sep 17 00:00:00 2001 From: David Bond Date: Thu, 7 Dec 2023 19:12:32 +0000 Subject: [PATCH] FluentAssertions0012 --- LogicMonitor.Api.Test/Data/DataTests.cs | 2 +- LogicMonitor.Api.Test/Settings/CollectorGroupTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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");