public void EnumerateSourceFiles() { var sut = new FilesystemProvider(); var result = sut.EnumerateSourcefiles(new[] { "../../samples/unencrypted" }, new[] { ".txt", ".md" }); Assert.Equal(3, result.Count()); }
public int Encrypt(IEnumerable <string> sources) { var filenames = _filesystem.EnumerateSourcefiles(sources, new[] { ".txt", ".md" }); return(EncryptDecryptFiles(filenames)); }