public virtual void TestId() { string msg = "A\nMessage\n"; ObjectId id = ChangeIdUtil.ComputeChangeId(treeId, parentId, p, q, msg); NUnit.Framework.Assert.AreEqual("73f3751208ac92cbb76f9a26ac4a0d9d472e381b", ObjectId .ToString(id)); }
/// <exception cref="System.Exception"></exception> private string Call(string body, bool replaceExisting) { ObjectId computeChangeId = ChangeIdUtil.ComputeChangeId(treeId1, parentId1, author , committer, body); if (computeChangeId == null) { return(body); } return(ChangeIdUtil.InsertId(body, computeChangeId, replaceExisting)); }