-
Notifications
You must be signed in to change notification settings - Fork 254
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
fix #178 InstanceOfType on null value #179
Conversation
@LarsCelie, It will cover your contributions to all Microsoft-managed open source projects. |
@LarsCelie, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request. |
public void InstanceOfTypeShouldFailWhenValueIsNull() | ||
{ | ||
Action action = () => TestFrameworkV2.Assert.IsInstanceOfType(null, typeof(AssertTests)); | ||
TestFrameworkV2.Assert.ThrowsException<TestFrameworkV2.AssertFailedException>(action); |
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.
Can we use ActionUtility.ActionShouldThrowExceptionOfType instead please. Any issue with ThrowsException would leave these tests in an indeterminate state too. Hence the ask.
} | ||
|
||
[TestMethod] | ||
public void InstanceOfTypeShouldFailWhenTypeIsNull() |
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.
If possible can we add a positive test too please?
Not sure if the tests provided are desired, so i can remove them if necessary.