How come System.IO.File is returning flase when the file does exist?

I'm using System.IO.File.Exists to check if a file exists. However, it's returning false for a file of which I know it exists. The code is the following:

    Assert.IsTrue(System.IO.File.Exists(@"\ImportRepositoryTest\Version2.xml"));

How come System.IO.File is returning flase when the file does exist?


How come System.IO.File is returning flase when the file does exist?
===


I'm using System.IO.File.Exists to check if a file exists. However, it's returning false for a file of which I know it exists. The code is the following:

    Assert.IsTrue(System.IO.File.Exists(@"\ImportRepositoryTest\Version2.xml"));

How come System.IO.File is returning flase when the file does exist?

