ShowTranslationWarning() private method

private ShowTranslationWarning ( ) : void
return void
Esempio n. 1
0
        public void ShowTranslationMessageOnlyOnce()
        {
            GtkClient client = new GtkClient ();
            Preferences.ConfigPath = ".";
            Preferences.Clear ();

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

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