-
Notifications
You must be signed in to change notification settings - Fork 356
Closed
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviordiagnostics 🔬Issues/PRs for the Diagnostics packageIssues/PRs for the Diagnostics package
Description
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
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
Metadata
Metadata
Assignees
Labels
bug 🐛An unexpected issue that highlights incorrect behaviorAn unexpected issue that highlights incorrect behaviordiagnostics 🔬Issues/PRs for the Diagnostics packageIssues/PRs for the Diagnostics package