Finding data file location while using Microsoft Test Framework
Posted
by Nair
on Stack Overflow
See other posts from Stack Overflow
or by Nair
Published on 2010-06-01T20:40:18Z
Indexed on
2010/06/01
20:43 UTC
Read the original article
Hit count: 159
I have been using NUnit and now I am switching to the Microsoft Unit Test frame work. In my test project I have a folder called TestData and I kept all my test input data files there. I want to use that files for my unit testing. In my test code, I am using Application name space and assembly name space but I can not get to the data folder directly until unless I write a code to find and replace some string to point to the data folder. I am sure someone might have run into the same problem, is the solution to change the path through program or is there a API call which will let us get to executing assembly folders? Thanks,
© Stack Overflow or respective owner