0

I have a class which is dependent on a resource string. It accesses, for example, a resource string as var str = Resources.INCORRECT_PASSWORD;. What is the correct way to use resources so that the class becomes unit testable?

Victor Mukherjee
  • 10,487
  • 16
  • 54
  • 97
  • Where is the resource file located in relation to the consuming class? Same project, same solution, different solution? – ChrisBint Sep 06 '16 at 10:15
  • If you dont want to make the resource file public you mark the assemibly as InternalVisibleTo http://stackoverflow.com/questions/106907/making-code-internal-but-available-for-unit-testing-from-other-projects – Macilquham Sep 06 '16 at 10:17
  • @ChrisBint It is in the same project. – Victor Mukherjee Sep 06 '16 at 10:28

0 Answers0