diff --git a/TestAdapter/TestExecutor.cs b/TestAdapter/TestExecutor.cs index 01b969b..59253d2 100644 --- a/TestAdapter/TestExecutor.cs +++ b/TestAdapter/TestExecutor.cs @@ -175,13 +175,15 @@ private int ConstructResult(Tests.Expression[] Expresions, TestResult testResult private void CreateResult(Tests.TestCase element, TestResult testResult, TestCase testCase, string name) { - var subResult = new TestResult(testCase); - subResult.Outcome = testResult.Outcome; - subResult.DisplayName = testCase.DisplayName; - subResult.ErrorMessage = $"{element.Name}{Environment.NewLine}"; - subResult.ErrorStackTrace = ""; - - + var subResult = new TestResult(testCase) + { + Outcome = testResult.Outcome, + DisplayName = testCase.DisplayName, + ErrorMessage = $"{element.Name}{Environment.NewLine}", + ErrorStackTrace = "", + Duration = testResult.Duration + }; + int i = ConstructResult(element.Expressions, subResult); foreach (var s in (element.Warning ?? new string[] { }))