@@ -22,7 +22,7 @@ public void Activity_Created_For_Attribute_Marked_Method()
2222 {
2323 Assert . IsNotNull ( Activity . Current ) ;
2424 AssertHasCommonTags ( Activity . Current , ServiceInterfaceFqn ,
25- "MethodExplicitlyMarkedForTracing" , "System. Action" ) ;
25+ "MethodExplicitlyMarkedForTracing" , "Action" ) ;
2626 } ) ;
2727 }
2828
@@ -46,10 +46,42 @@ await tracingDecorator.AsyncMethodExplicitlyMarkedForTracing(() =>
4646 {
4747 Assert . IsNotNull ( Activity . Current ) ;
4848 AssertHasCommonTags ( Activity . Current , ServiceInterfaceFqn ,
49- "AsyncMethodExplicitlyMarkedForTracing" , "System. Action" ) ;
49+ "AsyncMethodExplicitlyMarkedForTracing" , "Action" ) ;
5050 } ) ;
5151 }
5252
53+ [ TestMethod ]
54+ public void Activity_Created_MethodWithStrangeParams1 ( )
55+ {
56+ DecoratedService service = new DecoratedService ( ) ;
57+ IDecoratedService tracingDecorator = TraceDecorator < IDecoratedService > . Create ( service ) ;
58+ int intVal = 5 ;
59+ tracingDecorator . MethodWithStrangeParams1 ( ( ) =>
60+ {
61+ Assert . IsNotNull ( Activity . Current ) ;
62+ AssertHasCommonTags ( Activity . Current , ServiceInterfaceFqn , "MethodWithStrangeParams1" ,
63+ "Action|IList`1[]|ISet`1|IDictionary`2|Int32&" ) ;
64+ } ,
65+ new List < string > [ ] { } , new HashSet < int [ ] > ( ) , new Dictionary < int , ICollection < string > > ( ) , ref intVal
66+ ) ;
67+ }
68+
69+ [ TestMethod ]
70+ public void Activity_Created_MethodJaggedAndMultiDimArraysParams ( )
71+ {
72+ DecoratedService service = new DecoratedService ( ) ;
73+ IDecoratedService tracingDecorator = TraceDecorator < IDecoratedService > . Create ( service ) ;
74+ string strVal ;
75+ tracingDecorator . MethodJaggedAndMultiDimArraysParams ( ( ) =>
76+ {
77+ Assert . IsNotNull ( Activity . Current ) ;
78+ AssertHasCommonTags ( Activity . Current , ServiceInterfaceFqn , "MethodJaggedAndMultiDimArraysParams" ,
79+ "Action|String&|Boolean[][][]|Int16[,,][,][,,,]|Int64[][,][][,,]" ) ;
80+ } ,
81+ out strVal , new bool [ ] [ ] [ ] { } , new short [ , , , ] [ , ] [ , , ] { } , new long [ , , ] [ ] [ , ] [ ] { }
82+ ) ;
83+ }
84+
5385 [ TestMethod ]
5486 public void Activity_Not_Created_For_Non_Attribute_Marked_Method_If_All_Methods_False ( )
5587 {
0 commit comments