Testing the code, the XmlWriter is not flushing its contents to the StringWriter before being written to the results.
contexts.Do(c => this.BuildContext(xmlWrapper, c));
xml.WriteEndElement();
// xml.Flush() needs to be called here
var results = sb.ToString();
bool didWriteToFile = false;
Needs to be added after line 28 of XUnitFormatter.cs.
Testing the code, the XmlWriter is not flushing its contents to the StringWriter before being written to the results.
Needs to be added after line 28 of
XUnitFormatter.cs
.