public void CanMergeAFile()
 {
     using (var tempFile = TempFile.WithExtension("." + AnnotationRepository.FileExtension))
     {
         File.WriteAllText(tempFile.Path, "<?xml version='1.0' encoding='utf-8'?>" + Environment.NewLine + "<notes />");
         Assert.That(_chorusNotesFileHandler.CanMergeFile(tempFile.Path), Is.True);
     }
 }
示例#2
0
 public void CanMergeAFile()
 {
     using (var tempFile = TempFile.WithExtension(".lift-ranges"))
     {
         File.WriteAllText(tempFile.Path, "<?xml version='1.0' encoding='utf-8'?>" + Environment.NewLine + "<lift-ranges />");
         Assert.That(_liftRangesFileHandler.CanMergeFile(tempFile.Path), Is.True);
     }
 }
示例#3
0
 public void CannotMergeNonexistantFile()
 {
     Assert.That(_userLexiconSettingsFileHandler.CanMergeFile("bogusPathname"), Is.False);
 }
示例#4
0
 public void CannotMergeNonexistantFile()
 {
     Assert.IsFalse(_ldmlFileHandler.CanMergeFile("bogusPathname"));
 }
示例#5
0
 public void CannotMergeNonexistantFile()
 {
     Assert.IsFalse(_projectLexiconSettingsFileHandler.CanMergeFile("bogusPathname"));
 }