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