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); }
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); }