Skip to content

Commit a624fa7

Browse files
committed
C#: Update partial method test to count the number of extracted bodies.
1 parent 547feab commit a624fa7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
| Partial.cs:7:18:7:42 | PartialMethodWithoutBody1 | false |
2-
| Partial.cs:19:18:19:39 | PartialMethodWithBody1 | true |
3-
| Partial.cs:20:27:20:48 | PartialMethodWithBody2 | true |
4-
| Partial.cs:46:18:46:42 | PartialMethodWithoutBody2 | false |
1+
| Partial.cs:7:18:7:42 | PartialMethodWithoutBody1 | false | 0 |
2+
| Partial.cs:19:18:19:39 | PartialMethodWithBody1 | true | 1 |
3+
| Partial.cs:20:27:20:48 | PartialMethodWithBody2 | true | 2 |
4+
| Partial.cs:46:18:46:42 | PartialMethodWithoutBody2 | false | 0 |

csharp/ql/test/library-tests/partial/PartialMethodBody.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ private boolean hasBody(Method m) { if m.hasBody() then result = true else resul
44

55
from Method m
66
where m.fromSource() and m.isPartial()
7-
select m, hasBody(m)
7+
select m, hasBody(m), count(m.getBody())

0 commit comments

Comments
 (0)