示例#1
0
        public void MultiLine_WithSameWidth()
        {
            Boite         topBox    = new Boite("yo");
            Boite         bottomBox = new Boite("Mr");
            ComboVertical cb        = new ComboVertical(topBox, bottomBox);

            cb.Height.Should().Be(3);
            cb.Width.Should().Be(2);
        }
示例#2
0
        public void MultiLine_WithDifferentHeight()
        {
            Boite         topBox    = new Boite("yo");
            Boite         bottomBox = new Boite("Mr\ncornet");
            ComboVertical cb        = new ComboVertical(topBox, bottomBox);

            cb.Height.Should().Be(4);
            cb.Width.Should().Be(6);

            List <string> expectedText = new List <string>()
            {
                "yo    ", "------", "Mr    ", "cornet"
            };

            cb.Text.Should().BeEquivalentTo(expectedText);
        }