@@ -185,16 +185,15 @@ public sealed class OverloadTests
185
185
Trace-Command - Name MethodInvocation - Expression {
186
186
$obj.GenericMethod [int ]()
187
187
} - FilePath $filePath
188
- # FUTURE: The underlying mechanism should be improved here
189
- Get-Content $filePath | Should - BeLike " *Invoking method: void GenericMethod()"
188
+ Get-Content $filePath | Should - BeLike " *Invoking method: void GenericMethod`` [int`` ]()"
190
189
}
191
190
192
191
It " Traces generic method with argument" {
193
192
$obj = [TraceCommandTests.OverloadTests ]::new()
194
193
Trace-Command - Name MethodInvocation - Expression {
195
194
$obj.GenericMethodWithArg (" foo" )
196
195
} - FilePath $filePath
197
- Get-Content $filePath | Should - BeLike " *Invoking method: string GenericMethodWithArg(string obj)"
196
+ Get-Content $filePath | Should - BeLike " *Invoking method: string GenericMethodWithArg`` [string `` ] (string obj)"
198
197
}
199
198
200
199
It " Traces .NET call with default value" {
@@ -239,14 +238,14 @@ public sealed class OverloadTests
239
238
}
240
239
} - FilePath $filePath
241
240
# type fqn is used, the wildcard avoids hardcoding that
242
- Get-Content $filePath | Should - BeLike " *Invoking method: static int SizeOf(System.RuntimeType, * structure)"
241
+ Get-Content $filePath | Should - BeLike " *Invoking method: static int SizeOf`` [System.RuntimeType, * `` ] (System.RuntimeType, * structure)"
243
242
}
244
243
245
244
It " Traces LINQ call" {
246
245
Trace-Command - Name MethodInvocation - Expression {
247
246
[System.Linq.Enumerable ]::Union([int []]@ (1 , 2 ), [int []]@ (3 , 4 ))
248
247
} - FilePath $filePath
249
- Get-Content $filePath | Should - BeLike " *Invoking method: static System.Collections.Generic.IEnumerable`` [int`` ] Union(System.Collections.Generic.IEnumerable`` [int`` ] first, System.Collections.Generic.IEnumerable`` [int`` ] second)"
248
+ Get-Content $filePath | Should - BeLike " *Invoking method: static System.Collections.Generic.IEnumerable`` [int`` ] Union`` [int `` ] (System.Collections.Generic.IEnumerable`` [int`` ] first, System.Collections.Generic.IEnumerable`` [int`` ] second)"
250
249
}
251
250
}
252
251
0 commit comments