Visual Studio单元测试Properties.Settings.Default [英] Visual Studio Unit Testing Properties.Settings.Default

查看:157
本文介绍了Visual Studio单元测试Properties.Settings.Default的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想访问单元测试中的默认属性.我可以创建访问器,但是不知道如何告诉Visual Studio我要使用该访问器.甚至没有出现在智能列表中.我要测试访问这些属性的对象,并确保该属性相同.

I am wanting to access the default properties within a unit test. I can create the Accessor, but do not know how to tell visual studio that I want to use that accessor. Does not even appear to be in the intelisense list. I want to test an object that accesses these propertes, and ensure that the property is that same.

推荐答案

检查这些链接.
http://msdn.microsoft.com/en-us/library/aa730869%28v = vs.80%29.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/a65txexh.a​​spx [ ^ ]
Check these links out.
http://msdn.microsoft.com/en-us/library/aa730869%28v=vs.80%29.aspx[^]

http://msdn.microsoft.com/en-us/library/a65txexh.aspx[^]


这篇关于Visual Studio单元测试Properties.Settings.Default的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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