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); } }
public void Should_not_throw_any_exceptions_if_there_are_no_tests() { XmlReport xmlReport = new XmlReport(new TestReport("Test.xap").ToTestReportCollection()); xmlReport.GetXmlReport().ToString().ShouldNotBeEmpty(); }