Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should().Be<T> breaks AssertionScope #3

Open
ip-crezco opened this issue Jan 19, 2021 · 0 comments
Open

Should().Be<T> breaks AssertionScope #3

ip-crezco opened this issue Jan 19, 2021 · 0 comments

Comments

@ip-crezco
Copy link

The following code fragment describes the problem:
try { using (var scope = new AssertionScope()) { foreach (var b in _Banks) { var redir = await client.CreateBankRedirectAsync(b, client.LocalRedirectAIS, GuidHelpers.GuidEncode(Guid.NewGuid())); redir.IsT0.Should().BeTrue(because: b.ProviderId); // below form is much nicer, but it seems to break the AssertionScope //redir.Should().Be<Uri>(because: b.ProviderId); } } } catch (Exception ex) { Logger.LogError(ex, "Test failed"); throw; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant