Skip to content

Commit e4d2c51

Browse files
committed
C#: Add tests for names of nested classes
1 parent 6812389 commit e4d2c51

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

csharp/ql/test/query-tests/Telemetry/LibraryUsage/ExternalLibraryUsage.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ public void M3()
2525
{
2626
var guid1 = Guid.Parse("{12345678-1234-1234-1234-123456789012}"); // Has no flow summary
2727
}
28+
29+
public void M4()
30+
{
31+
var d = new Dictionary<string, object>(); // Uninteresting parameterless constructor
32+
var e = d.Keys.GetEnumerator().MoveNext(); // Methods on nested classes
33+
}
2834
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
| System | 5 |
2-
| System.Collections.Generic | 2 |
2+
| System.Collections.Generic | 5 |
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
| System.Collections.Generic#List<>.Add(T) | 2 |
2+
| System.Collections.Generic#Dictionary<,>+KeyCollection.GetEnumerator() | 1 |
3+
| System.Collections.Generic#Dictionary<,>.get_Keys() | 1 |

0 commit comments

Comments
 (0)