1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00
osu-lazer/osu.Game.Tests/Visual/TestCaseMedalOverlay.cs

34 lines
976 B
C#
Raw Normal View History

2018-01-05 19:21:19 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
2017-09-18 21:32:49 +08:00
// 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
{
2017-12-20 20:47:45 +08:00
public class TestCaseMedalOverlay : OsuTestCase
2017-09-18 21:32:49 +08:00
{
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);
});
}
}
}