public void Should_pass_the_schema_validation() { var file = Path.GetTempFileName(); using (TextWriter tw = new StreamWriter(file)) { tw.Write(_xmlReport.GetXmlReport()); } IList <string> errors; if (!XmlReport.ValidateSchema(file, out errors)) { var msg = string.Join(Environment.NewLine, errors.ToArray()); Assert.Fail(msg); } }