|
|
|
|
@ -39,8 +39,9 @@ namespace ICSharpCode.Reporting.Test.Reportingfactory
@@ -39,8 +39,9 @@ namespace ICSharpCode.Reporting.Test.Reportingfactory
|
|
|
|
|
[Test] |
|
|
|
|
public void CanInitDataPageBuilder() |
|
|
|
|
{ |
|
|
|
|
var dpb = new DataPageBuilder (new ReportModel(),typeof(string),new System.Collections.Generic.List<string>()); |
|
|
|
|
// dpb.DataSource(new ReportModel(),new System.Collections.Generic.List<string>());
|
|
|
|
|
var dpb = new DataPageBuilder (new ReportModel(), |
|
|
|
|
typeof(string), |
|
|
|
|
new System.Collections.Generic.List<string>()); |
|
|
|
|
Assert.That(dpb,Is.Not.Null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -83,24 +84,34 @@ namespace ICSharpCode.Reporting.Test.Reportingfactory
@@ -83,24 +84,34 @@ namespace ICSharpCode.Reporting.Test.Reportingfactory
|
|
|
|
|
ex.Run(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
// [Ignore]
|
|
|
|
|
public void LastPageContains_4_Section() |
|
|
|
|
{ |
|
|
|
|
public void ReportContains_2_Pages () { |
|
|
|
|
reportCreator.BuildExportList(); |
|
|
|
|
var exporteditems = reportCreator.Pages[1].ExportedItems; |
|
|
|
|
var sections = from s in exporteditems |
|
|
|
|
where s.GetType() == typeof(ExportContainer) |
|
|
|
|
select s; |
|
|
|
|
Assert.That(sections.ToList().Count,Is.EqualTo(4)); |
|
|
|
|
Assert.That(reportCreator.Pages.Count,Is.EqualTo(2)); |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void ReportContains_2_Pages () { |
|
|
|
|
public void LastElementInPageIsPageFooter() { |
|
|
|
|
reportCreator.BuildExportList(); |
|
|
|
|
Assert.That(reportCreator.Pages.Count,Is.EqualTo(2)); |
|
|
|
|
|
|
|
|
|
var firstPage = reportCreator.Pages[1].ExportedItems; |
|
|
|
|
var firstElement = firstPage.Last(); |
|
|
|
|
Assert.That(firstElement.Name,Is.EqualTo("ReportFooter")); |
|
|
|
|
|
|
|
|
|
var lastPage = reportCreator.Pages[1].ExportedItems; |
|
|
|
|
var lastElement = lastPage.Last(); |
|
|
|
|
Assert.That(lastElement.Name,Is.EqualTo("ReportFooter")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
public void FirstElementOnScoundPageIsReportHeader() { |
|
|
|
|
reportCreator.BuildExportList(); |
|
|
|
|
var exporteditems = reportCreator.Pages[1].ExportedItems; |
|
|
|
|
var result = exporteditems[0]; |
|
|
|
|
Assert.That(result.Name,Is.EqualTo("ReportPageHeader")); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|