我正在尝试使用.runsettings文件中的以下行在代码覆盖率中包含一个函数:
<Function>^Fort\.CMS\.CMSPages\.BlogModerator\.GetBlogComments$</Function>在MSTest项目的.runsettings文件中进行单元测试。但是它给出了一个语法错误,我在这里做错了什么?
这里
**Fort.CMS.CMSPages** is the *namespace*
**BlogModerator** is the *Class Name*.
**GetBlogComments** is the *function name*发布于 2017-09-26 16:12:28
正如用MSDN编写的,您的函数声明也应该包含参数。尝尝这个
<Function>^Fort\.CMS\.CMSPages\.BlogModerator\.GetBlogComments\(\)$</Function>
如果方法没有参数。
https://stackoverflow.com/questions/46420895
复制相似问题