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); } }
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); } }
public void CannotMergeNonexistantFile() { Assert.That(_userLexiconSettingsFileHandler.CanMergeFile("bogusPathname"), Is.False); }
public void CannotMergeNonexistantFile() { Assert.IsFalse(_ldmlFileHandler.CanMergeFile("bogusPathname")); }
public void CannotMergeNonexistantFile() { Assert.IsFalse(_projectLexiconSettingsFileHandler.CanMergeFile("bogusPathname")); }