public void Versioning_LostVersion_NodeDataIsNull() { //-- Preparing var content = Content.CreateNew("Car", TestRoot, "car"); var gcontent = (GenericContent)content.ContentHandler; gcontent.ApprovingMode = ApprovingType.False; gcontent.VersioningMode = VersioningType.None; gcontent.Save(); var contentId = gcontent.Id; //-- Thread #1 gcontent.CheckOut(); //-- Thread #2 var head = DataBackingStore.GetNodeHead(contentId); //-- Thread #1 gcontent.CheckIn(); //-- Thread #2 var data = DataBackingStore.GetNodeData(head, head.LastMinorVersionId).NodeData; Assert.IsNull(data); }
public void Versioning_LostVersion_NodeDataIsNull() { Test(() => { //-- Preparing var file = CreateTestFile(save: false); file.ApprovingMode = ApprovingType.False; file.VersioningMode = VersioningType.None; file.Save(); var contentId = file.Id; //-- Thread #1 file.CheckOut(); //-- Thread #2 var head = DataBackingStore.GetNodeHead(contentId); //-- Thread #1 file.CheckIn(); //-- Thread #2 var data = DataBackingStore.GetNodeData(head, head.LastMinorVersionId).NodeData; Assert.IsNull(data); }); }