public void SetUp()
 {
     _directoryAsset = new DirectoryAsset("directory", Encoding.UTF8, "*.txt", SearchOption.TopDirectoryOnly);
     _fileSystem     = MockRepository.GenerateMock <IFileSystem>();
     _tempPath       = Path.GetTempPath();
     _fileSystem.Stub(arg => arg.AbsolutePath("directory")).Return(_tempPath);
     _watcher = _directoryAsset.GetFileSystemWatcher(_fileSystem);
 }
 public void SetUp()
 {
     _fileFilter = MockRepository.GenerateMock <IFileFilter>();
     _fileFilter.Stub(arg => arg.Filter("file1")).Return(FilterResult.Include);
     _fileFilter.Stub(arg => arg.Filter("file2")).Return(FilterResult.Exclude);
     _directoryAsset = new DirectoryAsset("directory", Encoding.UTF8, "*.txt", SearchOption.TopDirectoryOnly, _fileFilter);
     _fileSystem     = MockRepository.GenerateMock <IFileSystem>();
     _fileSystem.Stub(arg => arg.AbsolutePath("directory")).Return("directory");
     _fileSystem.Stub(arg => arg.GetDirectoryFiles("directory", "*.txt", SearchOption.TopDirectoryOnly)).Return(new[] { "file1", "file2" });
     _resolveAssetFiles = _directoryAsset.ResolveAssetFiles(_fileSystem).ToArray();
 }
 public void SetUp()
 {
     _directoryAsset = new DirectoryAsset("directory", Encoding.UTF8, "*.txt", SearchOption.TopDirectoryOnly);
 }