You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v2/codestructure detects a test on the following code:
usingNUnit.Framework;namespacedemo.omnisharpvim.bug.nunitTheory{publicenumColor{Blue,White,Red}publicclassTests{// Logs show the following properties for the method Test1 below:// "Properties": {// "testMethodName": "demo.omnisharpvim.bug.nunitTheory.Tests.Test1",// "accessibility": "public",// "testFramework": "nunit",// "static": false// }[TestCase(Color.Blue)][TestCase(Color.White)][TestCase(Color.Red)]publicvoidTest1(Colorcolor){Assert.That(new[]{"Blue","White","Red"},Does.Contain(color.ToString()));}}}
However, v2/codestructure does not detect the same test when written under the following form:
usingNUnit.Framework;namespacedemo.omnisharpvim.bug.nunitTheory{publicenumColor{Blue,White,Red}publicclassTests{// Logs show the following properties for the method Test1 below:// "Properties": {// "accessibility": "public",// "static": false// }[Theory]publicvoidTest1(Colorcolor){Assert.That(new[]{"Blue","White","Red"},Does.Contain(color.ToString()));}}}
Is this behaviour expected?
The text was updated successfully, but these errors were encountered:
Hello,
Here's a repository I made for reproducing the following observation:
v2/codestructure
detects a test on the following code:v2/codestructure
does not detect the same test when written under the following form:Is this behaviour expected?
The text was updated successfully, but these errors were encountered: