@@ -78,7 +78,8 @@ public void CanRead_CustomTypeWithStringFields(string? text)
78
78
Assert . True ( classRecord . HasMember ( nameof ( CustomTypeWithStringField . Text ) ) ) ;
79
79
Assert . Equal ( input . Text , classRecord . GetString ( nameof ( CustomTypeWithStringField . Text ) ) ) ;
80
80
Assert . Equal ( typeof ( CustomTypeWithStringField ) . FullName , classRecord . TypeName . FullName ) ;
81
- Assert . Equal ( typeof ( CustomTypeWithStringField ) . Assembly . FullName , classRecord . LibraryName . FullName ) ;
81
+ Assert . Equal ( typeof ( CustomTypeWithStringField ) . AssemblyQualifiedName , classRecord . TypeName . AssemblyQualifiedName ) ;
82
+ Assert . Equal ( typeof ( CustomTypeWithStringField ) . Assembly . FullName , classRecord . TypeName . AssemblyName ! . FullName ) ;
82
83
Assert . False ( classRecord . HasMember ( "NotPresent" ) ) ;
83
84
}
84
85
@@ -232,7 +233,7 @@ public void CanRead_ComplexSystemType()
232
233
Assert . True ( classRecord . HasMember ( nameof ( Exception . Message ) ) ) ;
233
234
Assert . Equal ( input . Message , classRecord . GetString ( nameof ( Exception . Message ) ) ) ;
234
235
Assert . Equal ( typeof ( Exception ) . FullName , classRecord . TypeName . FullName ) ;
235
- Assert . Equal ( "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" , classRecord . LibraryName . FullName ) ;
236
+ Assert . Equal ( "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" , classRecord . TypeName . AssemblyName ! . FullName ) ;
236
237
Assert . False ( classRecord . HasMember ( "NotPresent" ) ) ;
237
238
}
238
239
@@ -264,7 +265,7 @@ public void CanRead_ArraysOfComplexTypes()
264
265
ArrayRecord < ClassRecord > arrayRecord = ( ( ArrayRecord < ClassRecord > ) PayloadReader . Read ( Serialize ( input ) ) ) ;
265
266
266
267
Assert . Equal ( typeof ( CustomTypeWithPrimitiveFields ) . FullName , arrayRecord . ElementTypeName . FullName ) ;
267
- Assert . Equal ( typeof ( CustomTypeWithPrimitiveFields ) . Assembly . FullName , arrayRecord . ElementTypeLibraryName . FullName ) ;
268
+ Assert . Equal ( typeof ( CustomTypeWithPrimitiveFields ) . Assembly . FullName , arrayRecord . ElementTypeName . AssemblyName ! . FullName ) ;
268
269
ClassRecord ? [ ] classRecords = arrayRecord . ToArray ( ) ;
269
270
for ( int i = 0 ; i < input . Length ; i ++ )
270
271
{
@@ -334,7 +335,7 @@ public void CanRead_ArraysOfObjects()
334
335
ArrayRecord arrayRecord = ( ArrayRecord ) PayloadReader . Read ( Serialize ( input ) ) ;
335
336
336
337
Assert . Equal ( typeof ( object ) . FullName , arrayRecord . ElementTypeName . FullName ) ;
337
- Assert . Equal ( "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" , arrayRecord . ElementTypeLibraryName . FullName ) ;
338
+ Assert . Equal ( "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" , arrayRecord . ElementTypeName . AssemblyName ! . FullName ) ;
338
339
Assert . Equal ( input , ( ( ArrayRecord < object > ) arrayRecord ) . ToArray ( ) ) ;
339
340
}
340
341
@@ -437,5 +438,8 @@ public void CanReadStruct()
437
438
438
439
Assert . Equal ( input . Integer , classRecord . GetInt32 ( nameof ( SerializableStruct . Integer ) ) ) ;
439
440
Assert . Equal ( input . Text , classRecord . GetString ( nameof ( SerializableStruct . Text ) ) ) ;
441
+ Assert . Equal ( typeof ( SerializableStruct ) . FullName , classRecord . TypeName . FullName ) ;
442
+ Assert . Equal ( typeof ( SerializableStruct ) . AssemblyQualifiedName , classRecord . TypeName . AssemblyQualifiedName ) ;
443
+ Assert . Equal ( typeof ( SerializableStruct ) . Assembly . FullName , classRecord . TypeName . AssemblyName ! . FullName ) ;
440
444
}
441
445
}
0 commit comments