如何使用BDD命名风格与ReSharper的4.5? [英] How to use bdd naming style with Resharper 4.5?
问题描述
我刚刚升级到ReSharper的4.5,现在看到我所有的BDDish测试方法被标记为不符合命名标准。我的命名规则是这样的:
I just upgraded to Resharper 4.5 and now see that all my BDDish test methods are marked as not conforming to the naming standard. My naming convention is like this:
public void Something_ShouldHaveThisResult()
ReSharper的不喜欢的方法下划线。有没有办法关闭这个功能,只是为了测试方法?我有我的代码的其余部分正常的命名约定
Resharper doesn't like the underscore in the method. Is there a way to turn this off, just for test methods? I have a normal naming convention for the rest of my code.
推荐答案
在菜单:
ReSharper的|选项 - >语言 - >通用 - >命名风格:去掉什么都命名你想要的风格。他们应该有一个禁用的功能,但他们没有。
Resharper | Options -> Languages -> Common -> Naming Style: remove what ever naming style you want. They should have a "disable" feature, but they don't.
这篇关于如何使用BDD命名风格与ReSharper的4.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!