Vac*_*ano 31 resharper unit-testing
我知道有办法做到这一点,但我再也找不到了.
那么,是否有人知道如何允许Resharper在单元测试中允许下划线?
所以,例如我希望这个没问题
在MyClassTest.cs中
public void MyMethodName_StateUnderTest_ExpectedResult()
{}
Run Code Online (Sandbox Code Playgroud)
但是我想要这个标志:
在MyClass.cs中
public void MyPoorly_Named_Method()
{}
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助
Jay*_*Jay 38
这篇文章演示了如何配置:http://atombrenner.blogspot.com/2010/07/how-to-change-resharper-naming-style.html
更新:该Machine.Specifications测试框架扩展ReSharper的,允许用于测试/规格定制的命名风格.很酷; 希望其他框架也这样做.http://lostechies.com/derekgreer/2010/02/11/resharper-naming-style-for-machine-specifications/