Example #1
0
        public void BeforeEachTest()
        {
            _mockFileWrapper = Substitute.For <IFileWrapper>();
            _mockFileWrapper.CallFileExists(Filename).Returns(true);

            _startup = new Startup(_mockFileWrapper);
        }
Example #2
0
 public bool VerifyFile(string filename)
 {
     if (!_file.CallFileExists(filename))
     {
         throw new ArgumentException("File does not exist. Application is shutting down.");
     }
     return(true);
 }