Example #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());
        }
Example #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());
        }