tSQLt-TestAdapter
tSQLt-TestAdapter copied to clipboard
tSQLtTestContainerDiscoverer.cs\RemoveTestContainer shouldn't run if cachedContainers.Count() =0
Describe the bug On initial startup for your tsql project, RemoveTestContainer fails with an unhandled exception. If I wrap this function with:
if(cachedContainers.Count() > 0)
Then we no longer get that error.
To Reproduce Steps to reproduce the behavior:
- start up a new project in debug mode
Expected behavior This first pass should run without an unhandled exception
Desktop (please complete the following information):
- OS: windows 10
- Visual Studio 2019
Additional context @GoEddie : I've got this fix in my branch Fix2019DetectTests. But it appears I can't push my branch to your repo.
@shannonlowder make a fork or this repo and push your branch there. You can then tie a PR from your branch & fork to GoEddie's repo