Пример #1
0
 //This test makes sure that existing Flex private use tags are not changed
 public void CreateNonExistentWritingSystemsFoundInOptionsList_OptionsListFileContainsEntirelyPrivateUseRfcTagThatExistsInRepo_RfcTagIsNotMigrated()
 {
     using (var e = new TestEnvironment("x-blah"))
     {
         e.WriteContentToLdmlFileInWritingSystemFolderWithName("x-blah", LdmlContentForTests.Version0("x-blah", "", "", ""));
         e.CreateLegacyFriendlyWritingSystemRepository();
         e.Helper.CreateNonExistentWritingSystemsFoundInFile();
         Assert.That(File.Exists(e.GetLdmlFileforWs("x-blah")), Is.True);
         Assert.That(File.Exists(e.GetLdmlFileforWs("qaa-x-blah")), Is.False);
         AssertThatXmlIn.File(e.PathToOptionsListFile).HasAtLeastOneMatchForXpath("/optionsList/options/option/name/form[@lang='x-blah']");
         AssertThatXmlIn.File(e.PathToOptionsListFile).HasNoMatchForXpath("/optionsList/options/option/name/form[@lang='qaa-x-blah']");
     }
 }