How to use bdd naming style with Resharper 4.5?

前端 未结 8 1678
你的背包
你的背包 2021-02-19 07:40

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:

<         


        
相关标签:
8条回答
  • 2021-02-19 08:20

    There is no need to remove rules. New Rule can be added that accept underscores

    Resharper | Options -> Languages -> Common -> Naming Style and add new rule to the bottom "User defined naming rules"

    0 讨论(0)
  • 2021-02-19 08:27

    You can use Agent Smith for more precise code naming conventions.

    Note: the version for the final R# 4.5 seems not to be compiled yet... but I'm sure it will be there soon.

    0 讨论(0)
  • 2021-02-19 08:35

    How to change the ReSharper naming style for test methods

    0 讨论(0)
  • 2021-02-19 08:35

    I've already added a request for this in the ReSharper bug-tracker. You can vote for it.

    0 讨论(0)
  • 2021-02-19 08:36

    Resharper 4.5.1 has added this capability. You can now add a new custom naming rule that applies specifically to a test method, and allow it to contain underscores.

    0 讨论(0)
  • 2021-02-19 08:38

    On the menu:

    Resharper | Options -> Languages -> Common -> Naming Style: remove what ever naming style you want. They should have a "disable" feature, but they don't.

    0 讨论(0)
提交回复
热议问题