MSTest: No tests are run because no tests are loaded or the selected tests are disabled

前端 未结 18 1695
不知归路
不知归路 2020-12-24 11:55

I have a c# solution with the following structure:

mySolution
  myProject
  myProject.MSTests
    References
      Microsoft.VisualStudio.QualityTools.UnitTe         


        
18条回答
  •  清酒与你
    2020-12-24 12:00

    The original poster did do this, but I arrived here after not having done this:

    Be sure that [TestClass] is declared at the top, public in scope:

    namespace XYZ.API.Repository.Tests
    {
        [TestClass()]
        public class ClientTests
        {
    

提交回复
热议问题