Ejemplo n.º 1
0
        public void GetFilesForSingleFileShouldCreateList()
        {
            string         path  = "c:\\temp\\test.txt";
            IList <string> files = _subject.SourceFile(path).GetFiles();

            Assert.That(files, Is.Not.Null);
            Assert.That(files.Count, Is.EqualTo(1));
            Assert.That(files[0], Is.EqualTo(path));

            _fileSystemHelper.AssertWasNotCalled(x => x.FindInFoldersRecursively(path, "*.*"));
        }