Esempio n. 1
0
 public void mkdirValeur()
 {
     Directory racine = new Directory("racine", null, 7);
     Directory test = new Directory("test", racine, 7);
     racine.createNewFile("test");
     Assert.AreEqual("test", test.name);
     Assert.AreEqual(racine, test.parent);
     Assert.AreEqual(7, test.permission);
 }
Esempio n. 2
0
 public void createFileTrue()
 {
     Directory racine = new Directory("racine", null, 7);
     Assert.IsTrue(racine.createNewFile("test"));
 }
Esempio n. 3
0
 public void createAjoutListe()
 {
     Directory racine = new Directory("racine", null, 7);
     racine.createNewFile("test");
     Assert.AreEqual(1, racine.listeFile.Count);
 }