How can i test .NET Standard projects?

I can't test my .NET Standard projects. When I build my test project, I can't see any tests in test explorer. I tried to test with NUnit, xUnit and MSTests but all have the same issue.

1 answer

  • answered 2017-06-17 19:07 Vinod

    Verify couple of things 1)Make sure that you are putting TestClass and TestMethod attribute e.g. Nunit [TestFixture] public void MyTestClass { [Test] public void MyTestMethod() { } } 2) Make sure that your Test Project is target is not set to 64 bit

    Please post some code so that people can better answer your question