diff --git a/src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/ObjectModelConverters.cs b/src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/ObjectModelConverters.cs index 850d7edce7..f3bf3b23b9 100644 --- a/src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/ObjectModelConverters.cs +++ b/src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/ObjectModelConverters.cs @@ -71,7 +71,9 @@ public static TestNode ToTestNode( if (testCase.CodeFilePath is not null) { - testNode.Properties.Add(new TestFileLocationProperty(testCase.CodeFilePath, new(new(testCase.LineNumber, -1), new(testCase.LineNumber, -1)))); + var position = new LinePosition(testCase.LineNumber, -1); + testNode.Properties.Add( + new TestFileLocationProperty(testCase.CodeFilePath, lineSpan: new(position, position))); } return testNode;