mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-02 01:03:29 +01:00
WIP -> Getting rid of old TextAlignment enums
This commit is contained in:
@@ -339,7 +339,7 @@ public class DrawTests (ITestOutputHelper _output)
|
||||
Text = "Test",
|
||||
Width = 6,
|
||||
Height = 1,
|
||||
TextAlignment = TextAlignment.Right,
|
||||
Justification = Justification.Right,
|
||||
ColorScheme = Colors.ColorSchemes ["Base"]
|
||||
};
|
||||
|
||||
@@ -350,7 +350,7 @@ public class DrawTests (ITestOutputHelper _output)
|
||||
Y = 1,
|
||||
Width = 1,
|
||||
Height = 6,
|
||||
VerticalTextAlignment = VerticalTextAlignment.Bottom,
|
||||
VerticalJustification = Justification.Bottom,
|
||||
ColorScheme = Colors.ColorSchemes ["Base"]
|
||||
};
|
||||
Toplevel top = new ();
|
||||
|
||||
@@ -681,11 +681,11 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.TextFormatter.Alignment = TextAlignment.Justified;
|
||||
view.TextFormatter.Alignment = Justification.Justified;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.TextFormatter.VerticalAlignment = VerticalTextAlignment.Middle;
|
||||
view.TextFormatter.VerticalAlignment = Justification.Centered;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
@@ -709,11 +709,11 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.TextAlignment = TextAlignment.Justified;
|
||||
view.Justification = Justification.Justified;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.VerticalTextAlignment = VerticalTextAlignment.Middle;
|
||||
view.VerticalJustification = Justification.Centered;
|
||||
Assert.False (view.TextFormatter.AutoSize);
|
||||
Assert.Equal (Size.Empty, view.Frame.Size);
|
||||
|
||||
@@ -738,7 +738,7 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Assert.True (view.TextFormatter.AutoSize);
|
||||
Assert.NotEqual (Size.Empty, view.Frame.Size);
|
||||
|
||||
view.TextAlignment = TextAlignment.Justified;
|
||||
view.Justification = Justification.Justified;
|
||||
Assert.True (view.TextFormatter.AutoSize);
|
||||
Assert.NotEqual (Size.Empty, view.Frame.Size);
|
||||
|
||||
@@ -747,7 +747,7 @@ public class DimAutoTests (ITestOutputHelper output)
|
||||
Text = "_1234",
|
||||
Width = Dim.Auto ()
|
||||
};
|
||||
view.VerticalTextAlignment = VerticalTextAlignment.Middle;
|
||||
view.VerticalJustification = Justification.Centered;
|
||||
Assert.True (view.TextFormatter.AutoSize);
|
||||
Assert.NotEqual (Size.Empty, view.Frame.Size);
|
||||
|
||||
|
||||
@@ -1811,7 +1811,7 @@ Y
|
||||
Y = 1,
|
||||
Width = width,
|
||||
Height = 1,
|
||||
TextAlignment = TextAlignment.Centered,
|
||||
Justification = Justification.Centered,
|
||||
};
|
||||
|
||||
if (autoSize)
|
||||
@@ -1826,7 +1826,7 @@ Y
|
||||
Y = 2,
|
||||
Width = width,
|
||||
Height = 1,
|
||||
TextAlignment = TextAlignment.Right,
|
||||
Justification = Justification.Right,
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1840,7 +1840,7 @@ Y
|
||||
Y = 3,
|
||||
Width = width,
|
||||
Height = 1,
|
||||
TextAlignment = TextAlignment.Justified,
|
||||
Justification = Justification.Justified,
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1937,7 +1937,7 @@ Y
|
||||
Width = 1,
|
||||
Height = height,
|
||||
TextDirection = TextDirection.TopBottom_LeftRight,
|
||||
VerticalTextAlignment = VerticalTextAlignment.Middle
|
||||
Justification = Justification.Centered
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1952,7 +1952,7 @@ Y
|
||||
Width = 1,
|
||||
Height = height,
|
||||
TextDirection = TextDirection.TopBottom_LeftRight,
|
||||
VerticalTextAlignment = VerticalTextAlignment.Bottom
|
||||
VerticalJustification = Justification.Bottom
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
@@ -1967,7 +1967,7 @@ Y
|
||||
Width = 1,
|
||||
Height = height,
|
||||
TextDirection = TextDirection.TopBottom_LeftRight,
|
||||
VerticalTextAlignment = VerticalTextAlignment.Justified
|
||||
VerticalJustification = Justification.Justified
|
||||
};
|
||||
if (autoSize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user