Fixing TextFormatter unit test.

This commit is contained in:
BDisp
2020-08-01 00:27:32 +01:00
parent 6a571163ab
commit 746cdc262d
2 changed files with 3 additions and 3 deletions

View File

@@ -533,8 +533,8 @@ namespace Terminal.Gui {
{
Assert.Equal (Rect.Empty, TextFormatter.CalcRect (0, 0, null));
Assert.Equal (Rect.Empty, TextFormatter.CalcRect (0, 0, ""));
Assert.Equal (Rect.Empty, TextFormatter.CalcRect (1, 2, ""));
Assert.Equal (Rect.Empty, TextFormatter.CalcRect (-1, -2, ""));
Assert.Equal (new Rect (new Point (1, 2), Size.Empty), TextFormatter.CalcRect (1, 2, ""));
Assert.Equal (new Rect (new Point (-1, -2), Size.Empty), TextFormatter.CalcRect (-1, -2, ""));
}
[Fact]