1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-27 00:22:57 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseLabelledTextBox.cs

42 lines
1.3 KiB
C#
Raw Normal View History

2018-07-20 19:28:39 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
2018-07-25 20:14:40 +08:00
using osu.Framework.Graphics.Containers;
2018-07-20 19:28:39 +08:00
using osu.Game.Screens.Edit.Screens.Setup.Components.LabelledComponents;
using System;
using System.Collections.Generic;
namespace osu.Game.Tests.Visual
{
[TestFixture]
public class TestCaseLabelledTextBox : OsuTestCase
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(LabelledTextBox),
};
[BackgroundDependencyLoader]
private void load()
{
2018-07-25 20:14:40 +08:00
Child = new Container
2018-07-20 19:28:39 +08:00
{
2018-07-25 20:14:40 +08:00
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.X,
Padding = new MarginPadding { Left = 150, Right = 150 },
Child = new LabelledTextBox
2018-07-20 19:28:39 +08:00
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
LabelText = "Testing text",
2018-07-23 20:44:10 +08:00
PlaceholderText = "This is definitely working as intended",
2018-07-20 19:28:39 +08:00
}
};
}
}
}