From 7b4e0f851283d0e2a6c0e87d34c094ab1b6e2cf2 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Tue, 4 Nov 2025 01:31:00 +1000 Subject: [PATCH] add ide related properties --- .../Features/Testing/Client/Dtos/TestNode.cs | 45 ++++++++++++------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/src/SharpIDE.Application/Features/Testing/Client/Dtos/TestNode.cs b/src/SharpIDE.Application/Features/Testing/Client/Dtos/TestNode.cs index da25a4c..854a9b4 100644 --- a/src/SharpIDE.Application/Features/Testing/Client/Dtos/TestNode.cs +++ b/src/SharpIDE.Application/Features/Testing/Client/Dtos/TestNode.cs @@ -1,27 +1,42 @@ - - -using Newtonsoft.Json; +using Newtonsoft.Json; namespace SharpIDE.Application.Features.Testing.Client.Dtos; public sealed record TestNodeUpdate ( - [property: JsonProperty("node")] - TestNode Node, + [property: JsonProperty("node")] + TestNode Node, - [property: JsonProperty("parent")] - string ParentUid); + [property: JsonProperty("parent")] + string ParentUid); +// https://github.com/microsoft/testfx/blob/main/docs/mstest-runner-protocol/003-protocol-ide-integration-extensions.md public sealed record TestNode ( - [property: JsonProperty("uid")] - string Uid, + [property: JsonProperty("uid")] + string Uid, - [property: JsonProperty("display-name")] - string DisplayName, + [property: JsonProperty("display-name")] + string DisplayName, - [property: JsonProperty("node-type")] - string NodeType, + [property: JsonProperty("node-type")] + string NodeType, + + [property: JsonProperty("execution-state")] + string ExecutionState, + + [property: JsonProperty("location.file")] + string LocationFile, + + [property: JsonProperty("location.type")] // Containing Class + string LocationType, + + [property: JsonProperty("location.method")] + string LocationMethod, + + [property: JsonProperty("location.line-start")] + int LocationLineStart, + + [property: JsonProperty("location.line-end")] + int LocationLineEnd); - [property: JsonProperty("execution-state")] - string ExecutionState);