public void NonAsciiFile() { using (var temp = new TempDir()) { // write the log file in the default encoding, which is what the CVS log will typically be in var cvsLog = temp.GetPath("cvs.log"); File.WriteAllText(cvsLog, CvsLogParserResources.NonAscii, Encoding.Default); var parser = new CvsLogParser(m_sandbox, cvsLog, m_branchMatcher); parser.Parse().ToList(); var file = parser.Files.Single(); Assert.AreEqual(file.Name, "demo©.xje"); } }
public void NonAsciiFile() { using (var temp = new TempDir()) { // write the log file in the default encoding, which is what the CVS log will typically be in var cvsLog = temp.GetPath("cvs.log"); File.WriteAllText(cvsLog, CvsLogParserResources.NonAscii, Encoding.Default); var parser = new CvsLogParser(m_sandbox, cvsLog, m_branchMatcher); parser.Parse().ToList(); var file = parser.Files.Single(); Assert.AreEqual(file.Name, "demo©.xje"); } }