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

Typo in Guard.ThrowHelper.ThrowArgumentNullExceptionForIsNotNull #862

Open
1 of 4 tasks
Benna96 opened this issue Apr 9, 2024 · 0 comments · May be fixed by #863
Open
1 of 4 tasks

Typo in Guard.ThrowHelper.ThrowArgumentNullExceptionForIsNotNull #862

Benna96 opened this issue Apr 9, 2024 · 0 comments · May be fixed by #863
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior diagnostics 🔬 Issues/PRs for the Diagnostics package

Comments

@Benna96
Copy link

Benna96 commented Apr 9, 2024

Describe the bug

There's a minor typo in Guard.ThrowHelper.ThrowArgumentNullExceptionForIsNotNull, an extra ).

Regression

No response

Steps to reproduce

1. Paste the following code:

object? foo = null;
Guard.IsNotNull(foo);

2. Run the code.
3. Observe that a `NullArgumentException` with the message is `Parameter "foo" (System.Object) must be not null).` is thrown.

Expected behavior

A NullArgumentException with the message Parameter "foo" (System.Object) must be not null. is thrown, without the extra ) at the end.

Screenshots

image

IDE and version

VS 2022

IDE version

No response

Nuget packages

  • CommunityToolkit.Common
  • CommunityToolkit.Diagnostics
  • CommunityToolkit.HighPerformance
  • CommunityToolkit.Mvvm (aka MVVM Toolkit)

Nuget package version(s)

8.2.2

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

@Benna96 Benna96 added the bug 🐛 An unexpected issue that highlights incorrect behavior label Apr 9, 2024
@Sergio0694 Sergio0694 added the diagnostics 🔬 Issues/PRs for the Diagnostics package label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An unexpected issue that highlights incorrect behavior diagnostics 🔬 Issues/PRs for the Diagnostics package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants