示例#1
0
        public void ShouldIgnoreACopyConstructor()
        {
            var source = new CopyConstructor {
                StringValue = "Copy!"
            };
            var result = Mapper.Map(source).ToANew <CopyConstructor>();

            result.StringValue.ShouldBe("Copy!");
        }
示例#2
0
 public CopyConstructor(CopyConstructor otherInstance)
 {
     StringValue = otherInstance.StringValue;
 }