79723010

Date: 2025-08-01 22:44:24
Score: 0.5
Natty:
Report link

If you can structure your code so that the classes which contain this file system code can take a construct-only property saying which path to access, which defaults to the hardcoded one, then you can instantiate those classes with a test directory when running the code in a unit test.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Philip Withnall