public void MergedGuyHasCorrectParentsOnForms() { MultiText x = new MultiText(); x["a"] = "alpha"; MultiText y = new MultiText(); y["b"] = "beta"; x.MergeIn(y); Assert.AreSame(y, y.Find("b").Parent); Assert.AreSame(x, x.Find("b").Parent); }
public void Equals_SameContent_True() { var x = new MultiText(); x["ws"] = "test"; var y = new MultiText(); y.MergeIn(x); Assert.IsTrue(x.Equals(y)); Assert.IsTrue(y.Equals(x)); }
public void ObjectEquals_SameContent_True() { var x = new MultiText(); x["ws"] = "test"; MultiText y = new MultiText(); y.MergeIn(x); Assert.IsTrue(x.Equals((object)y)); Assert.IsTrue(y.Equals((object)x)); }