Пример #1
0
 public void TestInconsistentLanguageString()
 {
     ConfigTools.InitConf("Config.xml");
     try
     {
         ConfigTools.SetLanguage("coucou");
     }
     catch (LanguageException e)
     {
         Console.WriteLine(e.Message);
         throw;
     }
 }
Пример #2
0
 public void TestNullCultureInfo()
 {
     ConfigTools.InitConf("Config.xml");
     try
     {
         ConfigTools.SetLanguage((CultureInfo)null);
     }
     catch (LanguageException e)
     {
         Console.WriteLine(e.Message);
         throw;
     }
 }
Пример #3
0
 public void TestNullLanguageString()
 {
     ConfigTools.InitConf("Config.xml");
     try
     {
         ConfigTools.SetLanguage((string)null);
     }
     catch (LanguageException e)
     {
         Console.WriteLine(e.Message);
         throw;
     }
 }