Skip to content
Prev Previous commit
Next Next commit
Use the Trace2Exception
It seems that (probably due to updated dependencies), there is a problem
where the `Trace2Exception` no longer inherits from
`InvalidOperationException`. Let's use the former, then.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Sep 30, 2024
commit 8bfe765a1b650f243c08eda713941140b8892b79
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public async Task BasicAuthentication_GetCredentials_NonDesktopSession_NoTermina

var basicAuth = new BasicAuthentication(context);

await Assert.ThrowsAsync<InvalidOperationException>(() => basicAuth.GetCredentialsAsync(testResource));
await Assert.ThrowsAsync<GitCredentialManager.Trace2InvalidOperationException>(() => basicAuth.GetCredentialsAsync(testResource));
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion src/shared/Core.Tests/HostProviderRegistryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task HostProviderRegistry_GetProvider_NoProviders_ThrowException()
var registry = new HostProviderRegistry(context);
var input = new InputArguments(new Dictionary<string, string>());

await Assert.ThrowsAsync<Exception>(() => registry.GetProviderAsync(input));
await Assert.ThrowsAsync<GitCredentialManager.Trace2Exception>(() => registry.GetProviderAsync(input));
}

[Fact]
Expand Down
Loading