示例#1
0
        public void MultiLine_WithSameHeight()
        {
            Boite           leftBox  = new Boite("yo");
            Boite           rigthBox = new Boite("Mr");
            ComboHorizontal cb       = new ComboHorizontal(leftBox, rigthBox);

            cb.Height.Should().Be(1);
            cb.Width.Should().Be(5);
        }
示例#2
0
        public void MultiLine_WithDifferentHeight()
        {
            Boite           leftBox  = new Boite("yo");
            Boite           rigthBox = new Boite("Mr\ncornet");
            ComboHorizontal cb       = new ComboHorizontal(leftBox, rigthBox);

            cb.Height.Should().Be(2);
            cb.Width.Should().Be(9);

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

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