コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
    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");
    }
コード例 #5
0
ファイル: NullableTypes.cs プロジェクト: netcasewqs/nlite
 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);
 }