Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Richardson committed Sep 30, 2022
1 parent 1a01a22 commit 59ce0c0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/Eto.Test/UnitTests/Forms/Controls/LabelTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,24 @@ public void ChangingTextAfterCreationShouldUpdateSize()
return layout;
});
}

[Test, ManualTest]
public void WrapModeNoneShouldAllowNewLines()
{
ManualForm("Label should have two lines of text", form =>
{
var label = new Label
{
Text = Utility.LoremTextWithTwoParagraphs,
Wrap = WrapMode.None
};
var layout = new PixelLayout
{
Size = new Size(300, 200)
};
layout.Add(label, 0, 0);
return layout;
});
}
}
}

0 comments on commit 59ce0c0

Please sign in to comment.