[英]How can I use a data file in a VS 2008 unit test?
I have the files checked in to svn. 我已将文件签入svn。 The key is that I don't want to hardcode the paths to the files. 关键是我不想对文件的路径进行硬编码。 How can I use relative paths and be able to find the data files consistantly? 如何使用相对路径并能够一致地找到数据文件?
The best way to do this is as follows: 最好的方法如下:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.