public void Expected_Not_Matched_PropertyCount() { var source = new PersonSource() { Name = "Junil, Um" }; var target = new PersonTarget2(); var mapping = new ReflectionMapping(source, target, new ReflectionMappingOption() { ThrowIfNotMatched = true }); }
public void ReflectionMapping_Test() { var source = new PersonSource() { Name = "Junil, Um" }; var target = new PersonTarget(); var mapping = new ReflectionMapping(source, target); TestContext.WriteLine("SourcePerson's name is {0}", source.Name); TestContext.WriteLine("TargetPerson's name is {0} after Mapped ReflectionMapping", target.name); TestContext.WriteLine("{0} = {1}", source.Name, target.name); Assert.IsTrue(source.Name == target.name, "리플랙션으로 매핑된 Name 속성의 값이 틀립니다."); }