-
Notifications
You must be signed in to change notification settings - Fork 264
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
fixed IsNotInstanceOfType failing when objected being asserted on is null #620
Conversation
Adding tests in a bit |
@@ -1754,10 +1754,15 @@ public static void IsNotInstanceOfType(object value, Type wrongType, string mess | |||
/// </exception> | |||
public static void IsNotInstanceOfType(object value, Type wrongType, string message, params object[] parameters) | |||
{ | |||
if (wrongType == null || value == null) | |||
if (wrongType == null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this required ? Do we have an issue ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Also the functionality was clearly wrong.
Issue #617 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just put a comment
Fixed IsNotInstanceOfType failing when objected being asserted on is null
Null is not an instance of any type.