tSQLt-TestAdapter icon indicating copy to clipboard operation
tSQLt-TestAdapter copied to clipboard

tSQLtTestContainerDiscoverer.cs\RemoveTestContainer shouldn't run if cachedContainers.Count() =0

Open shannonlowder opened this issue 4 years ago • 1 comments

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:

  1. 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 avatar Jan 17 '22 17:01 shannonlowder

@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

SaViGnAnO avatar Feb 01 '22 18:02 SaViGnAnO