I have a unit test that reads from an .xml file and it works fine on my local machine.
However, in TFS when I create a new build it gives the following exception:
Failed GetArticleByIdTestOptimal Test method Test.ArticleSystemTest.GetArticleByIdTestOptimal threw exception: System.Xml.XmlException: ImportFromFile filePath=[.\Articles1to5.xml]. ---> System.IO.FileNotFoundException: Could not find file 'c:\buildarea\TestResults\tfservice 2010-10-19 11_52_19_Any CPU_Release\Out\Articles1to5.xml'..
Is there some reason why a unit test could pass locally but not in TFS? I've verified that the file is on the build server.
View Complete Post