Exemplo n.º 1
0
        public void Test_Clone_Join()
        {
            //---------------Set up test pack-------------------
            Source source1 = new Source("Source1");
            Source source2 = new Source("Source2");

            Source.Join join = new Source.Join(source1, source2);
            //---------------Execute Test ----------------------
            Source.Join cloneOfJoin = join.Clone();
            //---------------Test Result -----------------------
            Assert.AreNotSame(join, cloneOfJoin);
            Assert.AreSame(source1, cloneOfJoin.FromSource);
            Assert.AreSame(source2, cloneOfJoin.ToSource);
            Assert.AreEqual(join.JoinType, cloneOfJoin.JoinType);
            Assert.AreEqual(join.JoinFields.Count, cloneOfJoin.JoinFields.Count);
        }
Exemplo n.º 2
0
 public void Test_Clone_Join()
 {
     //---------------Set up test pack-------------------
     Source source1 = new Source("Source1");
     Source source2 = new Source("Source2");
     Source.Join join = new Source.Join(source1, source2);
     //---------------Execute Test ----------------------
     Source.Join cloneOfJoin = join.Clone();
     //---------------Test Result -----------------------
     Assert.AreNotSame(join, cloneOfJoin);
     Assert.AreSame(source1, cloneOfJoin.FromSource);
     Assert.AreSame(source2, cloneOfJoin.ToSource);
     Assert.AreEqual(join.JoinType, cloneOfJoin.JoinType);
     Assert.AreEqual(join.JoinFields.Count, cloneOfJoin.JoinFields.Count);
 }