public static void CheckAll(SrmDocument document)
 {
     using (var checkReportCompatibility = new CheckReportCompatibility(document))
     {
         checkReportCompatibility.CheckAll();
     }
 }
 public void TestCustomReportsCompatibility()
 {
     TestSmallMolecules = false; // Mixed molecule docs create different report columns
     var myType = typeof (MultiLabelRatioTest);
     var document = ResultsUtil.DeserializeDocument("MultiLabel.sky", myType);
     // ReSharper disable once AssignNullToNotNullAttribute
     var customReports = (ReportSpecList)new XmlSerializer(typeof(ReportSpecList)).Deserialize(
         myType.Assembly.GetManifestResourceStream(myType, "MultiLabelCustomReports.skyr"));
     Assert.AreNotEqual(0, customReports.Count);
     using (var checkReportCompatibility = new CheckReportCompatibility(document))
     {
         checkReportCompatibility.CheckAll();
         foreach (var customReport in customReports)
         {
             checkReportCompatibility.CheckReport(customReport);
         }
     }
 }