惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
Tenable Blog
Project Zero
Project Zero
C
Cybersecurity and Infrastructure Security Agency CISA
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
S
Schneier on Security
Scott Helme
Scott Helme
S
Securelist
Know Your Adversary
Know Your Adversary
Vercel News
Vercel News
IT之家
IT之家
V
V2EX
F
Fortinet All Blogs
Simon Willison's Weblog
Simon Willison's Weblog
K
Kaspersky official blog
博客园_首页
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
Spread Privacy
Spread Privacy
Microsoft Security Blog
Microsoft Security Blog
Cisco Talos Blog
Cisco Talos Blog
The Register - Security
The Register - Security
有赞技术团队
有赞技术团队
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cyberwarzone
Cyberwarzone
Google DeepMind News
Google DeepMind News
The Hacker News
The Hacker News
L
LINUX DO - 热门话题
Hugging Face - Blog
Hugging Face - Blog
博客园 - 三生石上(FineUI控件)
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CXSECURITY Database RSS Feed - CXSecurity.com
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Threat Research - Cisco Blogs
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Privacy & Cybersecurity Law Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CERT Recently Published Vulnerability Notes
S
SegmentFault 最新的问题
AWS News Blog
AWS News Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
The Cloudflare Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
Vulnerabilities – Threatpost

博客园 - Hex

大辉谈-备战双十一之动静分离实战 [知识库:python-tornado]异步调用中的上下文控制Tornado stack context 在 CentOS 下手工安装 Docker v1.1x Docker: 如何修改 Docker 的镜像存储位置 Docker学习记录3: 搭建 Private Registry - Hex [原创]Docker学习记录: Shipyard+Swarm+Consul+Service Discover 搭建教程 解决mac OS 10.9 下python 在terminal下崩溃的问题 ssh连接失败, 记下来原因和解决方案 centos+nginx+redmine+gitosis安装指南 面向对象控与python内存泄漏 python 之禅:import this 新头衔:热酷高级python软件工程师,你问我去热酷干嘛? 使用AuthToken架构保护用户帐号验证Cookie的安全性 热酷,新的领域,新的发展 恩,终于有我自己的时间整理下这两年的思路了 [思想火花]:函数命名及参数 MouseOut和RollOut的区别 竟然遇到取FormAuthentication的值取不出来的情况 实现一个Ajax模式的文件上传功能有多难?
关于VS2008单元测试中加载配置文件的问题
Hex · 2009-07-28 · via 博客园 - Hex

问题:
终于尝试在项目中应用单元测试,一开始一切都按部就班的进行,一切良好,点[运行].显示出错结果,仔细看了下,异常信息为
Test method XinGongShe.Membership.Test.AccountManagerTest.UpdateUserRankPointsTest threw exception:  System.TypeInitializationException: The type initializer for 'XinGongShe.Membership.MembershipDataProvider' threw an exception. --->  System.IO.FileNotFoundException: Could not find file 'E:\Developing\XinGongShe Framework Solution\TestResults\Administrator_HEX 2009-07-28 19_23_34\Out\XinGongShe.config'..

原来配置文件没有自动复制到对应的测试目录,单元测试的生成目录是临时的,所以也不能简单的复制剪贴.

解决方案: 手工添加配置文件(针对vs2008英文版)

  1. 双击 LocalTestRun.testrunconfig 文件
  2. 选择 deployment 选项
  3. 单击 Add
  4. 选择配置文件.