I am implementing a collection of scripts to manage backup files and restores. The scripts are based on this article: http://www.solidq.com/sqj/Documents/2010%20September%20Issue/SQJ_003_pag._30-41.pdf
I want to develop Unit Tests around the scripts. I'm interested in using a framework such as Pester or PSUnit
My problem is that I don't understand what I should be looking for in the tests. I'm new to Unit testing, and most of what I have read relies on mocking up files, changing them with a function, and verifying that you can read the value you expect out of the file.
The functions I will build interact with a collection of backup files in some read-only fashion. My first inclination is to create a static directory with a couple of files and store it with my tests. Since the code only reads from the files, the test directory will always stay the same.
This would require storing these backup files in source control, which I don't love. I also don't think this follows in the true spirit of unit tests, but I'm not sure of a better way to do it. Any suggestions would be really appreciated.