unit-testingvisual-studio-2015mstest

Issues using DataTestMethod and DataRow attributes in MS Test


I have installed MS Test V2 in my VS 2015 instance using nuGet and I have successfully added DataTestMethod and DataRow attributes to my unit tests and they compile, but now when I build, the tests don't show up in Test Explorer.

Example:

[DataTestMethod]
[DataRow("YAHOO", "GOOGLE")]
public void TestCheckSite(string site)
{
     ... do stuff here ...
}

What am I missing? Is there a Test Explorer upgrade?


Solution

  • Please let me know if you still do not see the tests showing up.