C#: Exclude non source parameters from arguments test cases (otherwise the test reports indexer access and calls to Add for list and collection creations).

This commit is contained in:
Michael Nebel
2024-12-19 11:56:37 +01:00
parent 68ca307ac9
commit 8e9551dff7
2 changed files with 4 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
import csharp
from Call call, Expr arg, Parameter param
where arg = call.getArgumentForParameter(param)
where
arg = call.getArgumentForParameter(param) and
call.getTarget().fromSource()
select call, arg, param

View File

@@ -1,4 +1,5 @@
import csharp
from Parameter param
where param.getCallable().fromSource()
select param, param.getAnAssignedArgument()