-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Get rid of legacy test methods. #79532
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
Conversation
|
|
||
| [Fact] | ||
| public Task Test1() | ||
| => TestInRegularAndScript1Async( |
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 had to have this '1' in the name to prevent ambiguity collisions. Now the duplicative members are gone. so the naming ludge isn't needed.
| @@ -405,32 +405,15 @@ protected async Task TestActionCountAsync( | |||
| } | |||
|
|
|||
| internal Task TestInRegularAndScriptAsync( | |||
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.
these (and other methods like these) were the core methods i wanted to remove. They're massive, and we often take them (with small tweaks) and put in other locations. Having these be trivial (input, expected, optional parameters) means getting rid of a bunch of overloads that confusing called each other (and often could do things like miss some parameter along the way).
|
@dotnet/roslyn-ide ptal |
| Assert.Equal(count, actions.Length); | ||
| } | ||
|
|
||
| internal Task TestInRegularAndScriptAsync( |
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.
Delete?
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.
Not sure what you're asking me.
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.
Diff shows the code as commented out, so I'm checking if you meant to delete it.
Moves us down to a smaller and simpler set of testing overloads to maintain.
Note: there is likely more cleanup coming. The test harness has morphed so much, and there's lots of redundancy everywhere.