summaryrefslogtreecommitdiff
path: root/src/test/PlayingWithActiveReports.Test/Reports/ResultsReportTest.cs
blob: 616be61bdb67d8297c4bef14d5a96439c106cc6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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( );
		}
	}
}