示例#1
0
		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);
		}
示例#2
0
        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));
        }
示例#3
0
        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));
        }
示例#4
0
        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);
        }