public void Setup()
 {
     _testFilePath          = FileTestHelpers.NewTempFilePath();
     _testFileDirectory     = Path.GetDirectoryName(_testFilePath);
     _testFileRollingBackup = Path.GetFileName(_testFilePath) + ".*-*.backup";
     _dataProvider          = new FileDataProviderWithRollingBackup(_testFilePath);
 }
Beispiel #2
0
 public void Setup()
 {
     _testFilePath          = FileTestHelpers.NewTempFilePath();
     _testFileDirectory     = Path.GetDirectoryName(_testFilePath);
     _testFileRollingBackup = Path.GetFileName(_testFilePath) + ".*-*.backup";
     _testFilePathBackup    = _testFilePath + ".backup";
     _fileBackupCreator     = new FileBackupCreator();
 }
 public void ThrowsFileNotFound()
 {
     Assert.Throws <FileNotFoundException>(() => (new XmlConnectionsLoader(FileTestHelpers.NewTempFilePath())).Load());
 }
 public void Setup()
 {
     _testFilePath      = FileTestHelpers.NewTempFilePath();
     _testFileDirectory = Path.GetDirectoryName(_testFilePath);
     _dataProvider      = new FileDataProvider(_testFilePath);
 }