예제 #1
0
 public void UpdateWritingSystemListField_RemovesMergedCodeBeforeMergeWith()
 {
     Cache.LangProject.AnalysisWss = "fr-NO en fr";
     WritingSystemServices.UpdateWritingSystemListField(Cache, Cache.LangProject, LangProjectTags.kflidAnalysisWss, "fr-NO",
                                                        "fr");
     Assert.That(Cache.LangProject.AnalysisWss, Is.EqualTo("en fr"));
 }
예제 #2
0
 public void UpdateWritingSystemListField_ReplacesNonDuplicateCode()
 {
     Cache.LangProject.AnalysisWss = "fr en qaa-x-kal";
     WritingSystemServices.UpdateWritingSystemListField(Cache, Cache.LangProject, LangProjectTags.kflidAnalysisWss, "fr",
                                                        "de-NO");
     Assert.That(Cache.LangProject.AnalysisWss, Is.EqualTo("de-NO en qaa-x-kal"));
 }
예제 #3
0
 public void UpdateWritingSystemListField_DoesNothingIfNotFound()
 {
     Cache.LangProject.AnalysisWss = "fr en qaa-x-kal";
     WritingSystemServices.UpdateWritingSystemListField(Cache, Cache.LangProject, LangProjectTags.kflidAnalysisWss, "de",
                                                        "de-NO");
     Assert.That(Cache.LangProject.AnalysisWss, Is.EqualTo("fr en qaa-x-kal"));
 }