コード例 #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;
     }
 }