public void Struct_to_NullableStruct() { NullableTypes.B4.BInt bint = new B4.BInt(); bint.fld1 = "b"; B4 b = new B4(); b.fld1 = bint; A4 a = Context.objMan.GetMapper<B4, A4>().Map(b); Assert.AreEqual("b", a.fld1.fld1); }
public void Struct_to_NullableStruct() { NullableTypes.B4.BInt bint = new B4.BInt(); bint.fld1 = "b"; B4 b = new B4(); b.fld1 = bint; A4 a = Context.objMan.GetMapper <B4, A4>().Map(b); Assert.AreEqual("b", a.fld1.fld1); }
public void Struct_to_NullableStruct() { NullableTypes.B4.BInt bint = new B4.BInt(); bint.fld1 = "b"; B4 b = new B4(); b.fld1 = bint; A4 a = Mapper.Map <B4, A4>(b); Assert.AreEqual("b", a.fld1.fld1); }
public void Struct_to_NullableStruct() { var bint = new B4.BInt { Fld1 = "b" }; var b = new B4 { Fld1 = bint }; var a = Context.ObjMan.GetMapper <B4, A4>().Map(b); a.Fld1.Fld1.ShouldBe("b"); }
public void Struct_to_NullableStruct() { NullableTypes.B4.BInt bint = new B4.BInt(); bint.fld1 = "b"; B4 b = new B4(); b.fld1 = bint; A4 a = Mapper.Map<B4, A4>(b); Assert.AreEqual("b", a.fld1.fld1); }