private static void AssertEqual(DirCacheCGitCompatabilityTest.CGitIndexRecord c, DirCacheEntry j) { NUnit.Framework.Assert.IsNotNull(c); NUnit.Framework.Assert.IsNotNull(j); NUnit.Framework.Assert.AreEqual(c.path, j.PathString); NUnit.Framework.Assert.AreEqual(c.id, j.GetObjectId()); NUnit.Framework.Assert.AreEqual(c.mode, j.RawMode); NUnit.Framework.Assert.AreEqual(c.stage, j.Stage); }
/// <exception cref="System.Exception"></exception> private IDictionary <string, DirCacheCGitCompatabilityTest.CGitIndexRecord> ReadLsFiles () { LinkedHashMap <string, DirCacheCGitCompatabilityTest.CGitIndexRecord> r = new LinkedHashMap <string, DirCacheCGitCompatabilityTest.CGitIndexRecord>(); BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream( PathOf("gitgit.lsfiles")), "UTF-8")); try { string line; while ((line = br.ReadLine()) != null) { DirCacheCGitCompatabilityTest.CGitIndexRecord cr = new DirCacheCGitCompatabilityTest.CGitIndexRecord (line); r.Put(cr.path, cr); } } finally { br.Close(); } return(r); }
/// <exception cref="System.Exception"></exception> private IDictionary<string, DirCacheCGitCompatabilityTest.CGitIndexRecord> ReadLsFiles () { LinkedHashMap<string, DirCacheCGitCompatabilityTest.CGitIndexRecord> r = new LinkedHashMap <string, DirCacheCGitCompatabilityTest.CGitIndexRecord>(); BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream( PathOf("gitgit.lsfiles")), "UTF-8")); try { string line; while ((line = br.ReadLine()) != null) { DirCacheCGitCompatabilityTest.CGitIndexRecord cr = new DirCacheCGitCompatabilityTest.CGitIndexRecord (line); r.Put(cr.path, cr); } } finally { br.Close(); } return r; }