public CaseElement(SuiteElement parent, TestResult result) : base(parent.Printer, parent, new XElement("testcase"), result.Path) { Result = result; var parts = new List <string> (); for (var path = Path; !TestPath.Equals(path, Parent.Path); path = path.Parent) { var current = path.Node; if (current.PathType != TestPathType.Parameter && !current.IsHidden && !string.IsNullOrEmpty(current.Name)) { parts.Add(current.Name); } } if (parts.Count == 0) { parts.Add(Path.LocalName); } parts.Reverse(); Name = string.Join(".", parts) + Path.ArgumentList; }