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

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