public void LoadTest() { E3CTest test = new E3CTest(); test.Load("FichierE3C.txt"); // Assert.AreEqual(2, test.Themes.Count); }
private static void Conversion(string orgFile, string destFile) { List <String> files = new List <string>(); if (orgFile == "*") { foreach (var file in Directory.GetFiles(System.AppDomain.CurrentDomain.BaseDirectory)) { string ext = Path.GetExtension(file).ToLower(); if (ext == ".e3c") { files.Add(file); } } } else { files.Add(orgFile); } // foreach (String fullPath in files) { try { E3CTest test = new E3CTest(); Console.WriteLine("Lecture : " + Path.GetFileName(fullPath)); test.Load(fullPath); Console.WriteLine(" --> Terminé."); // test.SaveAsMoodle(Path.GetFileNameWithoutExtension(fullPath) + ".xml"); Console.WriteLine(" --> Sauvegardé."); // } catch (Exception ex) { Console.WriteLine("Erreur : {0}", ex.Message); } } // }