1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 02:17:46 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseMedalOverlay.cs

34 lines
978 B
C#
Raw Normal View History

2017-09-18 21:32:49 +08:00
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
2017-10-09 16:52:48 +08:00
using System;
using System.Collections.Generic;
2017-09-18 21:32:49 +08:00
using osu.Game.Overlays;
2017-10-09 16:52:48 +08:00
using osu.Game.Overlays.MedalSplash;
2017-09-18 21:32:49 +08:00
using osu.Game.Users;
namespace osu.Game.Tests.Visual
{
internal class TestCaseMedalOverlay : OsuTestCase
{
2017-10-09 16:52:48 +08:00
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(MedalOverlay),
typeof(DrawableMedal),
};
2017-09-18 21:32:49 +08:00
public TestCaseMedalOverlay()
{
AddStep(@"display", () =>
{
LoadComponentAsync(new MedalOverlay(new Medal
{
Name = @"Animations",
InternalName = @"all-intro-doubletime",
Description = @"More complex than you think.",
}), Add);
});
}
}
}