Ive started working on a product that uses license files. These files need to be read (and verified) in order for the application to work. This causes some problems in the unit tests, without the proper license it throws exceptions.
We are using NUnit and what I need to do is either:
- Copy the license file into the shadow copied directory before the test is run.
- Set the working directory to the original build output folder so that file names are still valid in the temporary test folder.
I know that file access should generally be avoided in unit tests but before the refactoring can begin, we need the unit tests in place so I need this to work.