I'm working on my first VS2008 unit test project and have run into problem. I'm using a wizard created test project and my unit test class (simplified) is -
namespace FileWrapperUnitTest
{
[TestClass]
public class UnitTest1
{
public UnitTest1()
{
// initialization stuff
}
public TestContext TestContext { get; set; }
[ClassCleanup()]
public static void MyClassCleanup()
{
// test cleanup
}
[TestMethod()]
public void TestMethod1()
{
// do test 1
}
[TestMethod()]
public void TestInstancePchNotCalled()
{
// do test 2
}
}
}
My problem is that in the Test Results Window, only TestMethod1 appears. Method TestInstancePchNotCalled does not appear in list of test methods, nor does it execute when I run the full unit test. But when I use Resharper 5.0's Unit Test Explorer, both unit tests appear.
I'm obviously missing something simple, but I cannot find it after Googling for a while.