ShouldShowTranslationWarning() public method

public ShouldShowTranslationWarning ( ) : bool
return bool
示例#1
0
        public void ShowTranslationMessageOnlyOnce()
        {
            GtkClient client = new GtkClient (translations);
            Preferences.ConfigPath = ".";
            Preferences.Clear ();

            translations.Percentage = client.MIN_TRANSLATION - 1;
            Assert.AreEqual (true, client.ShouldShowTranslationWarning ());
            Assert.AreEqual (false, client.ShouldShowTranslationWarning ());
        }
示例#2
0
        public void ShowTranslationMessageWhenChangingVersion()
        {
            GtkClient client = new GtkClient (translations);
            Preferences.ConfigPath = ".";
            Preferences.Clear ();

            translations.Percentage = client.MIN_TRANSLATION - 1;
            Assert.AreEqual (true, client.ShouldShowTranslationWarning ());
            Preferences.Set <string> (Preferences.EnglishVersionKey, "n.n.n");
            Assert.AreEqual (true, client.ShouldShowTranslationWarning ());
        }