summaryrefslogtreecommitdiff
path: root/src/test/PlayingWithActiveReports.Test/Reports/ResultsReportTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/PlayingWithActiveReports.Test/Reports/ResultsReportTest.cs')
-rw-r--r--src/test/PlayingWithActiveReports.Test/Reports/ResultsReportTest.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/PlayingWithActiveReports.Test/Reports/ResultsReportTest.cs b/src/test/PlayingWithActiveReports.Test/Reports/ResultsReportTest.cs
new file mode 100644
index 0000000..616be61
--- /dev/null
+++ b/src/test/PlayingWithActiveReports.Test/Reports/ResultsReportTest.cs
@@ -0,0 +1,33 @@
+using MbUnit.Framework;
+using PlayingWithActiveReports.Core.Reports;
+
+namespace PlayingWithActiveReports.Test.Reports {
+ [TestFixture]
+ public class ResultsReportTest {
+ [Test]
+ public void Should_Contain_Page_Header( ) {
+ IReportSection header = CreateSut( ).FindSectionBy( ReportSection.Header );
+ Assert.IsNotNull( header );
+ Assert.AreEqual( "Header", header.Name );
+ }
+
+ [Test]
+ public void Should_Contain_Page_Footer( ) {
+ IReportSection footer = CreateSut( ).FindSectionBy( ReportSection.Footer );
+ Assert.IsNotNull( footer );
+ Assert.AreEqual( "Footer", footer.Name );
+ }
+
+ [Test]
+ public void Should_Return_Questions_Results_Section( ) {
+ Assert.IsNotNull( CreateSut( ).FindSectionBy( ReportSection.Results ) );
+ }
+
+ [Test]
+ public void Should_Bind_All_Parameters_To_DataSource( ) {}
+
+ private IResultsReport CreateSut( ) {
+ return new ResultsReport( );
+ }
+ }
+} \ No newline at end of file