public virtual void TestGetCachedBytes() { string exp = "this is test data"; RevBlob a = tr.Blob("a"); RevBlob data = tr.Blob(exp); RevCommit r = tr.Commit().Add(a.Name, data).Create(); // // tr.ParseBody(r); NoteMap map = NoteMap.Read(reader, r); byte[] act = map.GetCachedBytes(a, exp.Length * 4); NUnit.Framework.Assert.IsNotNull(act, "has data for a"); NUnit.Framework.Assert.AreEqual(exp, RawParseUtils.Decode(act)); }