public void FilesListTest() { using var tfm = new TempFileManager(); var result = tfm.CreateFiles(10); Assert.IsTrue(tfm.FilesList().Count() == 10); }
public void CreateFilesTest() { using var tfm = new TempFileManager(); var result = tfm.CreateFiles(10); foreach (var file in result) { Assert.IsTrue(File.Exists(file)); } }
public void DeleteAllFilesTest() { using var tfm = new TempFileManager(); var result = tfm.CreateFiles(10); tfm.DeleteAllFiles(); Assert.IsTrue(tfm.FilesList().Count() == 0); foreach (var fileName in result) { Assert.IsTrue(File.Exists(fileName) == false); } }