Skip to content

Conversation

@martincostello
Copy link
Member

This PR applies a number of small Visual Studio code refactoring suggestions to the TestHost library code, plus a handful of things I spotted by eye while resolving them.

Make a number of fields that aren't changed readonly.
Use a range to trim the last character of the paths.
Use nameof() for exceptions rather than literals.
Use Task.CompletedTask instead of Task.FromResult().
Use Array.Empty() instead of allocating an empty array.
Remove unused CancellationToken parameter.
@martincostello martincostello requested a review from Tratcher as a code owner July 6, 2020 09:05
@ghost ghost added the area-hosting label Jul 6, 2020
Fix compilation error.
Add comment explaining range syntax.

Co-authored-by: Chris Ross <[email protected]>
@Tratcher Tratcher self-assigned this Jul 6, 2020
@Tratcher Tratcher added this to the 5.0.0-preview8 milestone Jul 6, 2020
@Tratcher Tratcher merged commit bbb695f into dotnet:master Jul 6, 2020
@Tratcher
Copy link
Member

Tratcher commented Jul 6, 2020

Thanks

@martincostello martincostello deleted the TestHost-Tidy branch July 6, 2020 18:56
@amcasey amcasey added the area-hosting Includes Hosting label Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-hosting Includes Hosting

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants