Skip to content

Commit 1439e06

Browse files
committed
Update test assertions for captured collection counts
Adjusted the first test to expect two captured items instead of one. Simplified the assertion in the second test to use Assert.Single for clarity and conciseness.
1 parent b9e07e1 commit 1439e06

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/KeeperData.Application.Tests.Unit/Orchestration/Imports/Sam/Holdings/Steps/SamHoldingImportPersistenceStepTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public async Task UpdateAssociatedMainSitesAsync_CallsBulkUpdateForSitesWithId()
7676

7777
await step.ExecuteAsync(context, CancellationToken.None);
7878

79-
Assert.Single(captured, _ => true);
79+
Assert.Equal(2, captured.Count);
8080
}
8181

8282
[Fact]
@@ -123,7 +123,7 @@ public async Task UpdateAssociatedMainSitesAsync_SkipsSitesWithoutId()
123123

124124
await step.ExecuteAsync(context, CancellationToken.None);
125125

126-
Assert.Single(captured, _ => true);
126+
Assert.Single(captured);
127127
}
128128

129129
[Fact]

0 commit comments

Comments
 (0)