Problems when I activate Live Unit Testing using NUnit in a Visual Studio 2017 Test Project
See original GitHub issue@licjapodaca commented on Sun Aug 05 2018
I’m using Visual Studio 2017 Enterprise 15.7.6 and a Test Project with the following Nuget Packages:

The problem is that when I activate Live Unit Testing (LUT) in VS2017 and specify in a Test Method the attribute [TestCase] in some cases works the LUT but when I mke some change in source code other Test Methods are excluded from LUT as you can see in the next image:

The source code that has the TestCase attribute is the following:
[Test]
[TestCase(null), TestCase(""), TestCase(" ")]
public void Log_InvalidError_ThrowArgumentNullException(string error)
{
var logger = new ErrorLogger();
Assert.That(() => logger.Log(error), Throws.ArgumentNullException);
}
NOTE: If I stop and start again LUT in VS2017 the Test Method mentioned at the beginning of this ISSUE is included correctly, but again if I refactor the source code, the LUT exclude the same Test Method again.
Is there a workaround for this problem?
Thanks for your help in advance.
@licjapodaca commented on Tue Aug 07 2018
Anybody?
@CharliePoole commented on Tue Aug 07 2018
Moving this to the nunit3 vs adapter repository, where it’s likely to get more attention.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)

Top Related StackOverflow Question
Finally, today I upgrade my Visual Studio to 15.8 and the issue was gone…
Live Unit Testing with NUnit finally works.
Thanks @OsirisTerje for your help.
Greetings
It should be due soon. The minor release rhythm is approximately 6 weeks (see https://docs.microsoft.com/en-us/visualstudio/productinfo/vs2017-release-rhythm) and 15.7 was released May 7th, so it should not be long. They never give fixed dates though, so the rhythm is all we ave to go by.
But, if you create a small repro I can check the issue.