@@ -9,20 +9,20 @@ public class SerializationHelperTests
99 [ InlineData ( typeof ( object ) , "System.Object" ) ]
1010 // Types outside of mscorlib include their assembly name
1111 [ InlineData ( typeof ( FactAttribute ) , "Xunit.FactAttribute, xunit.core" ) ]
12- // Types in device -specific execution library show up in xunit.execution
13- [ InlineData ( typeof ( XunitTestFramework ) , "Xunit.Sdk.XunitTestFramework, xunit.execution" ) ]
12+ // Types in platform -specific libraries show up with substitution tokens
13+ [ InlineData ( typeof ( XunitTestFramework ) , "Xunit.Sdk.XunitTestFramework, xunit.execution.{Platform} " ) ]
1414 // Array types
1515 [ InlineData ( typeof ( FactAttribute [ ] ) , "Xunit.FactAttribute[], xunit.core" ) ]
1616 // Array of arrays with multi-dimensions
1717 [ InlineData ( typeof ( FactAttribute [ ] [ , ] ) , "Xunit.FactAttribute[,][], xunit.core" ) ]
1818 // Single-nested generic type (both in mscorlib)
1919 [ InlineData ( typeof ( Action < object > ) , "System.Action`1[[System.Object]]" ) ]
2020 // Single-nested generic type (non-mscorlib)
21- [ InlineData ( typeof ( TestMethodRunner < XunitTestCase > ) , "Xunit.Sdk.TestMethodRunner`1[[Xunit.Sdk.XunitTestCase, xunit.execution]], xunit.execution" ) ]
21+ [ InlineData ( typeof ( TestMethodRunner < XunitTestCase > ) , "Xunit.Sdk.TestMethodRunner`1[[Xunit.Sdk.XunitTestCase, xunit.execution.{Platform} ]], xunit.execution.{Platform} " ) ]
2222 // Multiply-nested generic types
23- [ InlineData ( typeof ( Action < Tuple < object , FactAttribute > , XunitTestFramework > ) , "System.Action`2[[System.Tuple`2[[System.Object],[Xunit.FactAttribute, xunit.core]]],[Xunit.Sdk.XunitTestFramework, xunit.execution]]" ) ]
23+ [ InlineData ( typeof ( Action < Tuple < object , FactAttribute > , XunitTestFramework > ) , "System.Action`2[[System.Tuple`2[[System.Object],[Xunit.FactAttribute, xunit.core]]],[Xunit.Sdk.XunitTestFramework, xunit.execution.{Platform} ]]" ) ]
2424 // Generics and arrays, living together, like cats and dogs
25- [ InlineData ( typeof ( Action < XunitTestCase [ , ] [ ] > [ ] [ , ] ) , "System.Action`1[[Xunit.Sdk.XunitTestCase[][,], xunit.execution]][,][]" ) ]
25+ [ InlineData ( typeof ( Action < XunitTestCase [ , ] [ ] > [ ] [ , ] ) , "System.Action`1[[Xunit.Sdk.XunitTestCase[][,], xunit.execution.{Platform} ]][,][]" ) ]
2626 public static void CanRoundTripSerializedTypeNames ( Type type , string expectedName )
2727 {
2828 var name = SerializationHelper . GetTypeNameForSerialization ( type ) ;
0 commit comments