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

Document Assert.EnterMultipleScope #958

Open
manfred-brands opened this issue Aug 5, 2024 · 1 comment · May be fixed by #959
Open

Document Assert.EnterMultipleScope #958

manfred-brands opened this issue Aug 5, 2024 · 1 comment · May be fixed by #959
Assignees

Comments

@manfred-brands
Copy link
Member

manfred-brands commented Aug 5, 2024

NUnit 4.2 adds IDisposable EnterMultipleScope() method in addition to the Assert.Multiple() delegate.

This issue is to update the documentation with this.

NUnit PR 4587

@manfred-brands manfred-brands self-assigned this Aug 5, 2024
@manfred-brands manfred-brands linked a pull request Aug 5, 2024 that will close this issue
@chm-tm
Copy link
Contributor

chm-tm commented Jan 10, 2025

Document EnterMultipleScope as single way to accomplish multiple asserts, due to its advantages over Assert.Multiple.

In order to remove an unnecessary option and lower the learning curve, go so far as to mark Assert.Multiple as legacy and that it will be removed in a future release, also providing a code fixer to transform Assert.Multiple to Assert.EnterMultipleScope. This is in the same spirit as the braking change around classic asserts.

If the discussion about this suggestion leads toward permanent coexistence of both APIs, document EnterMultipleScope first.

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

Successfully merging a pull request may close this issue.

2 participants