Exemplo n.º 1
0
        public void GetFilesShouldCallFinder()
        {
            string path = "c:\\temp";

            _subject.SourceFolder(path).GetFiles();
            _fileSystemHelper.AssertWasCalled(x => x.FindInFoldersRecursively(path, "*.*"));
        }
Exemplo n.º 2
0
 public void FindExecutable_ShouldAutoFindIfNotSet()
 {
     _fileSystemHelper.Stub(x => x.Find("ILMerge.exe")).Return("c:\\ilmerge.exe");
     _subject.FindExecutable();
     _fileSystemHelper.AssertWasCalled(x => x.Find("ILMerge.exe"));
 }