teamlead-dashboard/tests/TUI.Engine.Tests/Stubs/Prepare.cs

22 lines
564 B
C#
Raw Permalink Normal View History

2024-03-15 19:13:09 +00:00
using TUI.Engine.Attributes.Alignments;
using TUI.Engine.Nodes;
namespace TUI.Engine.Tests.Stubs;
public static class Prepare
{
public static TestComponent Component()
{
var testComponent = new TestComponent();
testComponent.SetAlignment(Horizontal.Left);
testComponent.SetAlignment(Vertical.Top);
return testComponent;
}
public static TestContainer Container(params INode[] nodes)
{
var testContainer = new TestContainer();
testContainer.SetNodes(nodes);
return testContainer;
}
}