-
Notifications
You must be signed in to change notification settings - Fork 323
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
Enable nullable on vstest.console #3694
Conversation
{ | ||
if (source == 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.
Line 38 we handle null source and here we don't. I have added a skip when null.
{ | ||
if (source is 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.
We are flowing down a list of sources where some items could be null.
@@ -257,22 +256,23 @@ private static void PrintTimeSpan(TimeSpan timeSpan) | |||
/// </summary> | |||
private static string GetFormattedOutput(Collection<TestResultMessage> testMessageCollection) | |||
{ | |||
if (testMessageCollection != 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.
Reverted the condition to reduce nesting.
Contributes to AB#1549371