microsoft / testfx

MSTest framework and adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConsiderEmptyDataSourceAsInconclusive throws to catch the exception on the next line

nohwnd opened this issue · comments

When 0 items are produced and the code does not throw, we throw just to catch the exception. This could be made more efficient by extracting the catch and using it in if and catch paths.

https://grep.app/search?q=%26%26%20.%2AConsiderEmptyDataSourceAsInconclusive&regexp=true

Code is introduced here: https://github.com/microsoft/testfx/pull/2771/files

PR has no comments that would mention this.