Not sure why the compiler doesn't like it? http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.testcontext.writeline(v=vs.80).aspx

Maybe you didn't define the TestContext property? http://msdn.microsoft.com/en-us/library/ms404699(v=VS.80).aspx