Exemple #1
0
        public void ExportThisAssembly_HasMessageWithoutContext()
        {
            var catalog     = ExportCurrentAssembly();
            var translation = new TestTranslation();

            Assert.True(HasTranslation(catalog, translation.Messages, ""));
        }
Exemple #2
0
        public void ExportMainWindowTranslation_ContainsNewMessagesTextPluralTranslation()
        {
            var catalog = DoExport(typeof(TestTranslation));

            var translation = new TestTranslation();

            Assert.True(GetPlurals(catalog).Any(entry => entry.MsgIdSingular == translation.NewMessagesText[0] && entry.MsgIdPlural == translation.NewMessagesText[1]));
        }
Exemple #3
0
        public void ExportMainWindowTranslation_ContainsTitleTranslation()
        {
            var catalog = DoExport(typeof(TestTranslation));

            var translation = new TestTranslation();

            Assert.True(HasTranslation(catalog, translation.Title));
        }
Exemple #4
0
        public void ExportThisAssembly_ContainsTranslations()
        {
            var catalog     = ExportCurrentAssembly();
            var translation = new TestTranslation();

            Assert.Equal(9, catalog.Entries.Count);

            Assert.True(HasTranslation(catalog, translation.Title));
            Assert.True(HasTranslation(catalog, TranslationAttribute.GetValue(TestEnum.FirstValue)));
        }