2017-09-26 94 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