Skip to content

Commit 6c6b4ce

Browse files
committed
C#: Fix issue with TestLibraries not being excluded in the Telemetry queries and add Moq as a testlibrary.
1 parent 3455dd5 commit 6c6b4ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

csharp/ql/src/Telemetry/ExternalApi.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ private import semmle.code.csharp.security.dataflow.flowsources.Remote
1717
class TestLibrary extends RefType {
1818
TestLibrary() {
1919
this.getNamespace()
20-
.getName()
21-
.matches(["NUnit.Framework%", "Xunit%", "Microsoft.VisualStudio.TestTools.UnitTesting%"])
20+
.getQualifiedName()
21+
.matches([
22+
"NUnit.Framework%", "Xunit%", "Microsoft.VisualStudio.TestTools.UnitTesting%", "Moq%"
23+
])
2224
}
2325
}
2426

0 commit comments

Comments
 (0)