osu/osu.Game.Tests/Visual/TestCaseMedalOverlay.cs

36 lines
1019 B
C#
Raw Normal View History

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