MSTest和NHibernate [英] MSTest and NHibernate

查看:77
本文介绍了MSTest和NHibernate的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都没有让MSTest将hibernate.cfg.xml正确复制到输出目录的经验吗?我所有的MSTest都失败了,并没有找到hibernate.cfg.xml错误(我将其设置为始终复制"),但是我的MBUnit测试通过了.

Does anyone have any experience getting MSTest to copy hibernate.cfg.xml properly to the output directory? All my MSTests fail with a cannot find hibernate.cfg.xml error (I have it set to Copy Always), but my MBUnit tests pass.

推荐答案

您可以尝试将DeploymentItemAttribute添加到其中一个测试中,或者编辑.testrunco​​nfig文件并将其添加到部署"列表中.

You can try adding the DeploymentItemAttribute to one of your tests, or edit your .testrunconfig file and add the file to the Deployment list.

这篇关于MSTest和NHibernate的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆