diff --git a/src/TestLogger/Extensions/XunitTestAdapter.cs b/src/TestLogger/Extensions/XunitTestAdapter.cs index 6fcc013..c206ac4 100644 --- a/src/TestLogger/Extensions/XunitTestAdapter.cs +++ b/src/TestLogger/Extensions/XunitTestAdapter.cs @@ -46,6 +46,14 @@ public List TransformResults( result.Messages.Add(new TestResultMessage("skipReason", skipReason)); } + string displayName = result.Result.DisplayName; + + // Add parameters for theories. + if (displayName.Contains("(")) + { + result.Method += displayName.Substring(displayName.IndexOf("(")); + } + transformedResults.Add(result); }