public void BeforeEachTest() { _mockFileWrapper = Substitute.For <IFileWrapper>(); _mockFileWrapper.CallFileExists(Filename).Returns(true); _startup = new Startup(_mockFileWrapper); }
public bool VerifyFile(string filename) { if (!_file.CallFileExists(filename)) { throw new ArgumentException("File does not exist. Application is shutting down."); } return(true); }