haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

Xml summary can cause exception #296

Closed AnthonyLloyd closed 5 years ago

AnthonyLloyd commented 5 years ago
Unhandled Exception: System.ArgumentException: '◄', hexadecimal value 0x11, is an invalid character.
   at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)
   at System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
   at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
   at System.Xml.XmlUtf8RawTextWriterIndent.WriteString(String text)
   at System.Xml.XmlWellFormedWriter.WriteString(String text)
   at System.Xml.Linq.ElementWriter.WriteElement(XElement e)
   at System.Xml.Linq.XElement.WriteTo(XmlWriter writer)
   at System.Xml.Linq.XContainer.WriteContentTo(XmlWriter writer)
   at System.Xml.Linq.XDocument.WriteTo(XmlWriter writer)
   at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options)
   at Expecto.TestResults.writeNUnitSummary[a](String file, a assemblyName, TestRunSummary summary) in /Users/h/dev/logibit/expecto/Expecto.TestResults/Library.fs:line 123
   at Fsion.Tests.Main.writeResults@23.Invoke(TestRunSummary summary) in C:\Users\Anthony Lloyd\src\Fsion\Fsion.Tests\Main.fs:line 23
   at Expecto.Impl.appendSummaryHandler@915-2.Invoke(Unit _arg15) in /Users/h/dev/logibit/expecto/Expecto/Expecto.fs:line 915
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvokeNoHijackCheck[a,b](AsyncActivation`1 ctxt, FSharpFunc`2 userCode, b result1)
   at Microsoft.FSharp.Control.AsyncPrimitives.unitAsync@607.Invoke(AsyncActivation`1 ctxt)
   at <StartupCode$FSharp-Core>.$Async.Return@1097.Invoke(AsyncActivation`1 ctxt)
   at Microsoft.FSharp.Control.AsyncPrimitives.unitAsync@607.Invoke(AsyncActivation`1 ctxt)
   at Microsoft.FSharp.Control.AsyncPrimitives.unitAsync@607.Invoke(AsyncActivation`1 ctxt)
   at Microsoft.FSharp.Control.AsyncPrimitives.unitAsync@607.Invoke(AsyncActivation`1 ctxt)
   at Microsoft.FSharp.Control.AsyncPrimitives.unitAsync@607.Invoke(AsyncActivation`1 ctxt)