コード例 #1
0
        public void Is_Given_The_Control_Then_Create_Returns_Table(TableControlFactory factory)
        {
            var control = BuildTableControl();

            var actual = factory.Create(control) as Table;

            actual.Should().NotBeNull();
        }
コード例 #2
0
        public void Is_Given_The_Control_Then_Create_Returns_Table_And_The_Row_Columns_Are_Populated(TableControlFactory factory)
        {
            var control = BuildTableControl();

            var actual = factory.Create(control) as Table;

            actual.Should().NotBeNull();
            actual.Rows.Count.Should().BeGreaterThan(0);
            actual.Rows[0].Trim().Should().Be("Intermediate");
            actual.Rows[1].Should().Be("2");
            actual.Rows[2].Should().Be("GCSE");
        }
コード例 #3
0
        public void Is_Given_The_Control_Then_Create_Returns_Table_And_The_Header_Columns_Are_Populated(TableControlFactory factory)
        {
            var control = BuildTableControl();

            var actual = factory.Create(control) as Table;

            actual.Should().NotBeNull();
            actual.Headings.Count.Should().BeGreaterThan(0);
            actual.Headings[0].Should().Be("");
            actual.Headings[1].Should().Be("Level");
            actual.Headings[2].Should().Be("Equivalent education level");
        }