C#: Update partial method test to count the number of extracted bodies.

This commit is contained in:
Michael Nebel
2026-02-20 09:05:19 +01:00
parent a83c53ec9a
commit 0e543a9843
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
| Partial.cs:7:18:7:42 | PartialMethodWithoutBody1 | false |
| Partial.cs:19:18:19:39 | PartialMethodWithBody1 | true |
| Partial.cs:20:27:20:48 | PartialMethodWithBody2 | true |
| Partial.cs:46:18:46:42 | PartialMethodWithoutBody2 | false |
| Partial.cs:7:18:7:42 | PartialMethodWithoutBody1 | false | 0 |
| Partial.cs:19:18:19:39 | PartialMethodWithBody1 | true | 1 |
| Partial.cs:20:27:20:48 | PartialMethodWithBody2 | true | 2 |
| Partial.cs:46:18:46:42 | PartialMethodWithoutBody2 | false | 0 |

View File

@@ -4,4 +4,4 @@ private boolean hasBody(Method m) { if m.hasBody() then result = true else resul
from Method m
where m.fromSource() and m.isPartial()
select m, hasBody(m)
select m, hasBody(m), count(m.getBody())