public void Given_A_Revision_Guid_For_A_Revision_That_Was_Part_Of_A_Merge_Ensure_We_Can_Load_That_Revision() { var document = new Document("Test"); var sharedParentRevision = document.CurrentRevision; document.Edit(new BasicRevision(sharedParentRevision, Patches.Make(document.Contents, "Test2"))); var revisionIdToLoad = document.CurrentRevision.Id; document.Edit(new BasicRevision(sharedParentRevision, Patches.Make(document.Contents, "Test3"))); var revision = document.LoadRevision(revisionIdToLoad); Assert.That(revision.GenerateEditedContent(), Is.EqualTo("Test2")); }
public void Given_A_Revision_Guid_Ensure_We_Can_Load_A_Specific_Revision() { var document = new Document("Test"); document.Edit(new BasicRevision(document.CurrentRevision, Patches.Make(document.Contents, "Test2"))); var revisionIdToLoad = document.CurrentRevision.Id; document.Edit(new BasicRevision(document.CurrentRevision, Patches.Make(document.Contents, "Test3"))); var revision = document.LoadRevision(revisionIdToLoad); Assert.That(revision.GenerateEditedContent(), Is.EqualTo("Test2")); }