public void DefaultInitializer_HasCorrectPath()
        {
            GlobalWritingSystemRepository repo = GlobalWritingSystemRepository.Initialize();
            string expectedPath = string.Format(".*SIL.WritingSystemRepository.{0}",
                                                LdmlDataMapper.CurrentLdmlLibraryVersion);

            Assert.That(repo.PathToWritingSystems, Is.StringMatching(expectedPath));
        }
Exemple #2
0
 public void PathConstructor_HasCorrectPath()
 {
     using (var e = CreateTemporaryFolder(TestContext.CurrentContext.Test.Name))
     {
         var repo = new GlobalWritingSystemRepository(e.Path);
         Assert.That(repo.PathToWritingSystems,
                     Is.StringMatching($".*PathConstructor_HasCorrectPath.*{LdmlDataMapper.CurrentLdmlLibraryVersion}"));
     }
 }
 public void PathConstructor_HasCorrectPath()
 {
     using (var e = new TemporaryFolder("GlobalWritingSystemRepositoryTests"))
     {
         var    repo         = new GlobalWritingSystemRepository(e.Path);
         string expectedPath = string.Format(".*GlobalWritingSystemRepositoryTests.{0}",
                                             LdmlDataMapper.CurrentLdmlLibraryVersion);
         Assert.That(repo.PathToWritingSystems, Is.StringMatching(expectedPath));
     }
 }