When I tried to run the tests VS shows the message: "No tests found to run."
This is my code:
public abstract class MyBaseClassTests
{
protected IRepository Repository;
[TestMethod]
public void Test1 ()
{
var x = this.Repository.Get("id");
Assert.AreEqual(x.Id, "id");
}
}
[TestClass]
public class Implementation1Tests : MyBaseClassTests
{
[TestInitialize]
public void Setup()
{
this.Repository= new MemoryRepository();
}
}
[TestClass]
public class Implementation2Tests : MyBaseClassTests
{
[TestInitialize]
public void Setup()
{
this.Repository= new SqlRepository("connectionString...");
}
}
All the Implementations are in different test projects. (Different Assemblies)
Any suggestion? or is a VS limitation?