Skip to content

Commit 3b2ead6

Browse files
fix xunit compiler warnings for integration tests
1 parent 4e5ff3e commit 3b2ead6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ScmBackup.Tests.Integration/DirectoryHelperTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void DirectoryWithSuffixIsCreated()
2323

2424
Assert.False(string.IsNullOrWhiteSpace(result));
2525
Assert.True(Directory.Exists(result));
26-
Assert.True(result.EndsWith(suffix));
26+
Assert.EndsWith(suffix, result);
2727
}
2828

2929
[Fact]

src/ScmBackup.Tests.Integration/HosterFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public HosterFactoryTests()
2020
[Fact]
2121
public void NewHosterIsAdded()
2222
{
23-
Assert.Equal(1, sut.Count);
23+
Assert.Single(sut);
2424
}
2525

2626
[Fact]

src/ScmBackup.Tests.Integration/ScmFactoryTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public ScmFactoryTests()
2323
[Fact]
2424
public void NewScmIsAdded()
2525
{
26-
Assert.Equal(1, sut.Count);
26+
Assert.Single(sut);
2727
}
2828

2929
[Fact]

0 commit comments

Comments
 (0)