@@ -601,9 +601,19 @@ public void CSharpStaticEventImplementation(string typeFullName, string eventNam
601601 TestEventSignature ( staticVirtualMemberDllPath , typeFullName , eventName , expectedSignature ) ;
602602 }
603603
604+ [ TestCase ( "AllowsRefStructDemo.IRefStructProcessor`1" ,
605+ "public interface IRefStructProcessor<T> where T : allows ref struct" ) ]
606+ public void CSharpAllowsRefStructForTypeTest ( string typeFullName , string expectedSignature )
607+ {
608+ var allowsRefStructDllPath = "../../../../external/Test/AllowsRefStructDemo.dll" ;
609+ TestTypeSignature ( allowsRefStructDllPath , typeFullName , expectedSignature ) ;
610+ }
611+
604612 [ TestCase ( "AllowsRefStructDemo.Immutable" , "Update" ,
605613 "public bool Update<TArg> (TArg transformerArgument) where TArg : new(), allows ref struct;" ) ]
606- public void CSharpAllowsRefStructTest ( string typeFullName , string methodName , string expectedSignature )
614+ [ TestCase ( "AllowsRefStructDemo.RefStructHandler" , "Handle" ,
615+ "public void Handle<T> (ref T item) where T : new(), allows ref struct;" ) ]
616+ public void CSharpAllowsRefStructForMemberTest ( string typeFullName , string methodName , string expectedSignature )
607617 {
608618 var allowsRefStructDllPath = "../../../../external/Test/AllowsRefStructDemo.dll" ;
609619 TestMethodSignature ( allowsRefStructDllPath , typeFullName , methodName , expectedSignature ) ;
0 commit comments