1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 16:48:22 +08:00
osu-lazer/osu.Game.Tests/Visual/UserInterface/TestSceneShearedOverlayHeader.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.3 KiB
C#
Raw Normal View History

2022-02-20 22:03:21 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System.Linq;
2022-02-20 22:03:21 +08:00
using NUnit.Framework;
using osu.Framework.Allocation;
using osu.Game.Graphics.UserInterface;
using osu.Game.Overlays;
namespace osu.Game.Tests.Visual.UserInterface
{
[TestFixture]
public partial class TestSceneShearedOverlayHeader : OsuTestScene
2022-02-20 22:03:21 +08:00
{
[Cached]
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Green);
[Test]
public void TestShearedOverlayHeader()
2022-02-20 22:03:21 +08:00
{
AddStep("create content", () =>
{
Child = new ShearedOverlayHeader
2022-02-20 22:03:21 +08:00
{
Title = "Sheared overlay header",
Description = string.Join(" ", Enumerable.Repeat("This is a description.", 20)),
2022-02-20 22:03:21 +08:00
Close = () => { }
};
});
}
[Test]
public void TestDisabledExit()
{
AddStep("create content", () =>
{
Child = new ShearedOverlayHeader
2022-02-20 22:03:21 +08:00
{
Title = "Sheared overlay header",
2022-02-20 22:03:21 +08:00
Description = "This is a description."
};
});
}
}
}