Skip to content

Commit 3172b50

Browse files
committed
Add more AOT related test.
1 parent 6bb729e commit 3172b50

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

  • test/MsgPack.UnitTest.Xamarin.iOS/Serialization

test/MsgPack.UnitTest.Xamarin.iOS/Serialization/AotTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ private static void TestGenericDefaultSerializerCore<T>( T value, Func<T, T, boo
122122
[Test]
123123
public void TestTypeMetadataExtraction()
124124
{
125+
VerifyType( typeof( WithMessagePackMember ), new[] { "B", "A" }, new string[ 0 ] );
125126
VerifyType( typeof( ComplexTypeWithDataContractWithOrder ), new[] { "Source", "Data", "TimeStamp", "History" }, new[] { "History" } );
126127
VerifyType( typeof( ComplexTypeWithOneBaseOrder ), new[] { null, "One", "Two" }, new string[ 0 ] );
127128
VerifyType( typeof( DataMemberAttributeNamedPropertyTestTarget ), new[] { "Alias" }, new string[ 0 ] );
@@ -193,5 +194,14 @@ private static void VerifyType( Type type, string[] expectedMemberNames, string[
193194
}
194195
}
195196
}
197+
198+
public class WithMessagePackMember
199+
{
200+
[MessagePackMember( 0 )]
201+
public string B { get; set; }
202+
203+
[MessagePackMember( 1 )]
204+
public string A { get; set; }
205+
}
196206
}
197207
}

0 commit comments

Comments
 (0)