コード例 #1
0
 public void GetReport_GetReport1_ReportPropertiesAreCorrect()
 {
     var target = new ReportRepository();
     var report = target.GetReport("report1");
     Assert.IsNotNull(report);
     Assert.AreEqual("Audit Recap Report", report.Name);
     Assert.IsTrue(string.IsNullOrEmpty(report.Description) == false);
     Assert.AreEqual("/themes/default/theme.css", report.ThemeFile);
     Assert.IsTrue(string.IsNullOrEmpty(report.ScriptFile) == false);
     Assert.IsTrue(string.IsNullOrEmpty(report.TemplateLayoutFile) == false);
 }
コード例 #2
0
 public void GetReports_Execute_AtLeastOneReportExists()
 {
     var target = new ReportRepository();
     var actual = target.GetReports();
     Assert.IsTrue(actual.Count > 0);
 }