Skip to content

Commit da12fc9

Browse files
committed
Use Assert.Fail(message) as appropriate
Visual Studio pointed out that this coding pattern is preferred to `Assert.True(false, message)`. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6f13e76 commit da12fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/Core.Tests/HostProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public async Task HostProvider_GetCredentialAsync_CredentialExists_ReturnsExisti
3030
IsSupportedFunc = _ => true,
3131
GenerateCredentialFunc = _ =>
3232
{
33-
Assert.True(false, "Should never be called");
33+
Assert.Fail("Should never be called");
3434
return null;
3535
},
3636
};

0 commit comments

Comments
 (0)