public void TestMapperLargerToSmaller() { var source = new typeArrayClass1 { arr = new object[12] }; var destination = new typeArrayClass2 { arr = new object[10] }; Mapper.Map(source, destination); }
public void TestMapperSmallerToLarger() { const int srcLength = 10; var source = new typeArrayClass1 { arr = new object[srcLength] }; var destination = new typeArrayClass2 { arr = new object[12] }; Mapper.Map(source, destination); destination.arr.Length.ShouldEqual(srcLength); }