public void Try_to_return_part_of_a() { var a = Sigo.Create(7, "x/name", "Phat" ).Freeze(); var b = Sigo.Create(7, "x/name", "Phat", "y", "y" ).Freeze(); var r = ImplMergeSpec.Merge(a, b); // r equal b... SigoAssert.Equal(r, b); // ...but not same b... SigoAssert.NotSame(r, b); // ...because there is r[x] == a[x] SigoAssert.Equal(r["x"], a["x"]); SigoAssert.Same(r["x"], a["x"]); }
public void SP_return_b_if_not_same() { SigoAssert.Same(b, Merge(a, b)); SigoAssert.Same(b, Merge(e0, b)); }
public void PS_return_a_if_b_have_no_m() { SigoAssert.Same(a, Merge(a, e0)); SigoAssert.Same(a, Merge(a, Sigo.Create(5, "x", e0))); }
public void PP_return_a_if_same() { SigoAssert.Same(a, Merge(a, a)); SigoAssert.Same(a, Merge(a, aa)); }