Using VS2010, I can’t seem to add additional test methods. If I set up my project like this
[TestMethod]
public void Test1()
{
Assert.AreNotEqual(0,1);
}
[TestMethod]
public void Test2()
{
Assert.AreNotEqual(0,1);
}
The only test that shows up in my Test View is Test1. How do I make sure Test2 gets in to that list?
EDIT:
Additional tests that weren’t initially created are not added to the list of tests. So if I was to add Test3 after running tests, then Test3 would not get added.
Simplest way: Reopen the solution.
You can also open your test list file (the “vsmdi” file in your Solution Items folder) and hit the “refresh” button there.
A full rebuild of your solution works sometimes, too.