From 0e543a98436bcfd2809106348cae7e1dead05265 Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Fri, 20 Feb 2026 09:05:19 +0100 Subject: [PATCH] C#: Update partial method test to count the number of extracted bodies. --- .../test/library-tests/partial/PartialMethodBody.expected | 8 ++++---- csharp/ql/test/library-tests/partial/PartialMethodBody.ql | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/csharp/ql/test/library-tests/partial/PartialMethodBody.expected b/csharp/ql/test/library-tests/partial/PartialMethodBody.expected index c9a2729fb26..81f9115d862 100644 --- a/csharp/ql/test/library-tests/partial/PartialMethodBody.expected +++ b/csharp/ql/test/library-tests/partial/PartialMethodBody.expected @@ -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 | diff --git a/csharp/ql/test/library-tests/partial/PartialMethodBody.ql b/csharp/ql/test/library-tests/partial/PartialMethodBody.ql index 53cb9be250a..9b01ffa0a69 100644 --- a/csharp/ql/test/library-tests/partial/PartialMethodBody.ql +++ b/csharp/ql/test/library-tests/partial/PartialMethodBody.ql @@ -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())