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")); }
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")); }
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")); }