2017-09-26 113 views
0

我想用在.runsettings文件以下行包括在代码覆盖功能:语法错误文件

<Function>^Fort\.CMS\.CMSPages\.BlogModerator\.GetBlogComments$</Function> 

在.runsettings文件中MSTest的项目进行单元测试。但它给出了语法错误,我在这里做错了什么?

这里

**Fort.CMS.CMSPages** is the *namespace* 
**BlogModerator** is the *Class Name*. 
**GetBlogComments** is the *function name* 

回答

0

写在MSDN你的函数声明应该ASLO包括参数。 试试这个

<Function>^Fort\.CMS\.CMSPages\.BlogModerator\.GetBlogComments\(\)$</Function>

的情况下,方法

也没有参数。

+0

它不工作仍然 – SmartestVEGA

+0

@SmartestVEGA你可以尝试\(。*代替\(\)$末 –

+0

可以更新整条生产线,我有点糊涂了什么,以取代 – SmartestVEGA