Skip to content
Prev Previous commit
Next Next commit
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]>
  • Loading branch information
dscho committed Sep 30, 2024
commit da12fc9ce77b6e66abf7160077c30700fab36a71
2 changes: 1 addition & 1 deletion src/shared/Core.Tests/HostProviderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task HostProvider_GetCredentialAsync_CredentialExists_ReturnsExisti
IsSupportedFunc = _ => true,
GenerateCredentialFunc = _ =>
{
Assert.True(false, "Should never be called");
Assert.Fail("Should never be called");
return null;
},
};
Expand Down