Ejemplo n.º 1
0
        public void TestSameNameDifferentType()
        {
            MapProperties map = new MapProperties();

            map.OnAssigning = OnAssigning;
            var xx = map.Map <ObjectMock, ObjectMock3>(Builder <ObjectMock> .CreateNew().Build(),
                                                       new ObjectMock3());
        }
Ejemplo n.º 2
0
        public void TestSourceIsObject()
        {
            MapProperties map = new MapProperties();

            map.OnAssigning = OnAssigning;
            var xx = map.Map <ObjectMock, ObjectMock>(Builder <ObjectMock> .CreateNew().Build(),
                                                      new ObjectMock());
        }
Ejemplo n.º 3
0
        public void TestChildExclude()
        {
            MapProperties map  = new MapProperties();
            var           mock = Builder <ObjectMock> .CreateNew().Build();

            mock.prop4            = new Mocks.ObjectMock2();
            mock.prop4.exludeProp = "ssss";
            var result = map.Map <ObjectMock, ObjectMock3>(mock,
                                                           new ObjectMock3(), new List <string> {
                "exludeProp"
            });

            if (!string.IsNullOrWhiteSpace(result.prop4.exludeProp))
            {
                Assert.Fail();
            }
        }
Ejemplo n.º 4
0
 public void TestWithoutAssign()
 {
     MapProperties map = new MapProperties();
     var           xx  = map.Map <ObjectMock, ObjectMock3>(Builder <ObjectMock> .CreateNew().Build(),
                                                           new ObjectMock3());
 }