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

36 lines
1019 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;
2018-03-02 14:34:31 +08:00
using NUnit.Framework;
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
{
2018-03-02 14:34:31 +08:00
[TestFixture]
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);
});
}
}
}