public void returns_string_empty_if_both_column_lists_are_empty()
        {
            BorderTemplate borderTemplate = BorderTemplate.SingleLineBorderTemplate;

            string actual = borderTemplate.GenerateHorizontalSeparator(new List <int>(), new List <int>());

            Assert.That(actual, Is.EqualTo(string.Empty));
        }
예제 #2
0
        public void two_columns_with_length_5_and_5()
        {
            BorderTemplate borderTemplate = BorderTemplate.SingleLineBorderTemplate;

            string actual = borderTemplate.GenerateHorizontalSeparator(5, 5);

            Assert.That(actual, Is.EqualTo("├─────┼─────┤"));
        }
예제 #3
0
        public void one_column_with_length_0()
        {
            BorderTemplate borderTemplate = BorderTemplate.SingleLineBorderTemplate;

            string actual = borderTemplate.GenerateHorizontalSeparator(0);

            Assert.That(actual, Is.EqualTo("├┤"));
        }
        public void two_top_cells_equal_with_two_bottom_cells()
        {
            BorderTemplate borderTemplate  = BorderTemplate.SingleLineBorderTemplate;
            List <int>     topColumnWidths = new List <int> {
                3, 2
            };
            List <int> bottomColumnWidths = new List <int> {
                3, 2
            };

            string actual = borderTemplate.GenerateHorizontalSeparator(topColumnWidths, bottomColumnWidths);

            Assert.That(actual, Is.EqualTo("├───┼──┤"));
        }
        public void one_top_cell_greater_than_one_bottom_cell()
        {
            BorderTemplate borderTemplate  = BorderTemplate.SingleLineBorderTemplate;
            List <int>     topColumnWidths = new List <int> {
                6
            };
            List <int> bottomColumnWidths = new List <int> {
                2
            };

            string actual = borderTemplate.GenerateHorizontalSeparator(topColumnWidths, bottomColumnWidths);

            Assert.That(actual, Is.EqualTo("├──┬───┘"));
        }