Skip to content

Commit 36a694d

Browse files
committed
Fix tests for CAS.
1 parent 7f4e5ba commit 36a694d

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

test/MsgPack.UnitTest/Serialization/AutoMessagePackSerializerTest.Polymorphism.ttinclude

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,12 @@ private void GeneratePolymorohismExtensionTests( bool generateTypes, bool genera
15581558
{
15591559
#>
15601560

1561-
<#= typeSpec.IsPublicType ? "public" : "internal" #> sealed class <#= typeSpec.VerifierTypeName #>
1561+
#if !SILVERLIGHT && !SILVERLIGHT_PRIVILEGED
1562+
<#= typeSpec.IsPublicType ? "public" : "internal" #>
1563+
#else
1564+
public
1565+
#endif // !SILVERLIGHT && !SILVERLIGHT_PRIVILEGED
1566+
sealed class <#= typeSpec.VerifierTypeName #>
15621567
{
15631568
private static readonly Regex VerificationRegex =
15641569
new Regex( "^" + Regex.Escape( typeof( <#= typeSpec.VerifierTypeName #> ).Namespace ) + @"\.(Known|Runtime)Polymorphic(Collection|Dictionary)?$" );

test/MsgPack.UnitTest/Serialization/AutoMessagePackSerializerTest.Types.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12299,7 +12299,12 @@ public class PolymorphicHolder
1229912299
public PolymorphicHolder() { }
1230012300
} // PolymorphicHolder
1230112301

12302-
public sealed class PublicTypeVerifier
12302+
#if !SILVERLIGHT && !SILVERLIGHT_PRIVILEGED
12303+
public
12304+
#else
12305+
public
12306+
#endif // !SILVERLIGHT && !SILVERLIGHT_PRIVILEGED
12307+
sealed class PublicTypeVerifier
1230312308
{
1230412309
private static readonly Regex VerificationRegex =
1230512310
new Regex( "^" + Regex.Escape( typeof( PublicTypeVerifier ).Namespace ) + @"\.(Known|Runtime)Polymorphic(Collection|Dictionary)?$" );
@@ -12366,7 +12371,12 @@ public static bool WithoutDangerous( PolymorphicTypeVerificationContext context
1236612371
} // PublicTypeVerifier
1236712372

1236812373

12369-
internal sealed class NonPublicTypeVerifier
12374+
#if !SILVERLIGHT && !SILVERLIGHT_PRIVILEGED
12375+
internal
12376+
#else
12377+
public
12378+
#endif // !SILVERLIGHT && !SILVERLIGHT_PRIVILEGED
12379+
sealed class NonPublicTypeVerifier
1237012380
{
1237112381
private static readonly Regex VerificationRegex =
1237212382
new Regex( "^" + Regex.Escape( typeof( NonPublicTypeVerifier ).Namespace ) + @"\.(Known|Runtime)Polymorphic(Collection|Dictionary)?$" );

0 commit comments

Comments
 (0)