예제 #1
0
        public void PropertyConverterNegativeTest()
        {
            PropertyConverter target = new PropertyConverter();
            var source         = new TestClassA();
            var sourceProperty = source.GetType().GetProperty("InnerClass");
            var result         = new TestClassB();
            var resultProperty = result.GetType().GetProperty("InnerClassCode");

            source.InnerClass = new TestClassC();
            target.Convert(
                source,
                sourceProperty,
                target,
                resultProperty,
                false);
        }
예제 #2
0
 public void PropertyConverterNegativeTest()
 {
     var target = new PropertyConverter();
     var source = new TestClassA();
     var sourceProperty = source.GetType().GetProperty("InnerClass");
     var result = new TestClassB();
     var resultProperty = result.GetType().GetProperty("InnerClassCode");
     source.InnerClass = new TestClassC();
     target.Convert(
         source,
         sourceProperty,
         target,
         resultProperty,
         false);
 }