[TestMethod] // - ok public void UnionCloneList_Expected_Merged_Shape() { ErrorResultTO errors; Guid mergeID = _dl1.UID; _dl1 = _dl1.Merge(_dl2, enDataListMergeTypes.Union, enTranslationDepth.Shape, false, out errors); IBinaryDataListEntry scalar; IBinaryDataListEntry rs; string error; _dl1.TryGetEntry("myScalar", out scalar, out error); _dl1.TryGetEntry("recset", out rs, out error); Assert.AreEqual("myValue", scalar.FetchScalar().TheValue); Assert.AreEqual("r1.f1.value", (rs.FetchRecordAt(1, out error)[0]).TheValue); Assert.AreEqual(mergeID, _dl1.UID); Assert.IsFalse(errors.HasErrors()); }
/// <summary> /// Merges the specified left. /// </summary> /// <param name="left">The left.</param> /// <param name="right">The right.</param> /// <param name="mergeType">Type of the merge.</param> /// <param name="depth">The depth.</param> /// <param name="createNewList">if set to <c>true</c> [create new list].</param> /// <param name="errors">The errors.</param> /// <returns></returns> public IBinaryDataList Merge(IBinaryDataList left, IBinaryDataList right, enDataListMergeTypes mergeType, enTranslationDepth depth, bool createNewList, out ErrorResultTO errors) { return(left.Merge(right, mergeType, depth, createNewList, out errors)); }