File.Exists("SDF File Path") returns a FALSE when run through Unit tests even though it exists in th
Posted
by shiva-hv
on Stack Overflow
See other posts from Stack Overflow
or by shiva-hv
Published on 2009-12-04T16:26:06Z
Indexed on
2010/05/08
11:08 UTC
Read the original article
Hit count: 235
visual-studio-2008
|.NET
I am writing Unit tests for a Windows Project. The Executable project on the Client Side of this Windows Project has a code File.Exists("LanguageLookups.sdf") which is used to check and return a Bool if the sdf file exists in the Execution Directory or not. But when i execute the same piece of Code through a Unit test; The code File.Exists("LanguageLookups.sdf") returns a FALSE. Its not able to find this SDF File. Can anybody help me on this?
© Stack Overflow or respective owner