GetLocalizedMessage() public method

public GetLocalizedMessage ( ) : string
return string
Beispiel #1
0
 public void TestMessageLoading_ja()
 {
     IMessage invalidSyntax = new MessageImpl(
         MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
     assertEquals("構文エラー: XXX", invalidSyntax
         .GetLocalizedMessage(new CultureInfo("ja")));
 }
Beispiel #2
0
        public void TestMessageLoading_ja()
        {
            IMessage invalidSyntax = new MessageImpl(
                MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");

            assertEquals("構文エラー: XXX", invalidSyntax
                         .GetLocalizedMessage(new CultureInfo("ja")));
        }
Beispiel #3
0
 public void TestMessageLoading()
 {
     IMessage invalidSyntax = new MessageImpl(
         MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
     /* 
      * if the default locale is ja, you get ja as a fallback:
      * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
      */
     if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja")))
         assertEquals("Syntax Error: XXX", invalidSyntax.GetLocalizedMessage(new CultureInfo("en")));
 }
Beispiel #4
0
        public void TestMessageLoading()
        {
            IMessage invalidSyntax = new MessageImpl(
                MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");

            /*
             * if the default locale is ja, you get ja as a fallback:
             * see ResourceBundle.html#getBundle(java.lang.String, java.util.Locale, java.lang.ClassLoader)
             */
            if (!CultureInfo.CurrentUICulture.Equals(new CultureInfo("ja")))
            {
                assertEquals("Syntax Error: XXX", invalidSyntax.GetLocalizedMessage(new CultureInfo("en")));
            }
        }