public void CreateIfNotExists() { Diretorio.CreateIfNotExists(diretorio1); var myfile = File.Create(diretorio1 + "file.txt"); myfile.Close(); myfile = File.Create(diretorio1 + "file_2.pdf"); myfile.Close(); myfile = File.Create(diretorio1 + "file_3.txt"); myfile.Close(); Diretorio.CreateIfNotExists(diretorio1IN); myfile = File.Create(diretorio1IN + "file.txt"); myfile.Close(); myfile = File.Create(diretorio1IN + "file_2.pdf"); myfile.Close(); myfile = File.Create(diretorio1IN + "file_3.txt"); myfile.Close(); Assert.IsTrue(Directory.Exists(diretorio1IN)); Diretorio.CreateIfNotExists(diretorio1IN_In); Diretorio.CreateIfNotExists(diretorio2IN); Assert.IsTrue(Directory.Exists(diretorio1)); Assert.IsTrue(Directory.Exists(diretorio1IN)); Assert.IsTrue(Directory.Exists(diretorio2IN)); }