Rename tests


I largely follows the test structuring guidelines suggested by Roy Osherove.
In short the guidelines says that the tests should match the production code with prefixes and be in the same namespace.

As a quick example, the test for
public class MyClass
  public void MyMethod() {..}

would look like this

public classMyClassTests
  public void MyMethod_test_description()
  { ..  }

Is it possible to configure Resharper to autorename the tests when renaming or moving the production code?

Please sign in to leave a comment.