2017-02-09 18:24:53 +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
|
|
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using osu.Desktop.VisualTests;
|
|
|
|
|
using osu.Framework.Desktop.Platform;
|
|
|
|
|
using osu.Game.Modes;
|
|
|
|
|
using osu.Game.Modes.Catch;
|
|
|
|
|
using osu.Game.Modes.Mania;
|
|
|
|
|
using osu.Game.Modes.Osu;
|
|
|
|
|
using osu.Game.Modes.Taiko;
|
|
|
|
|
|
|
|
|
|
namespace osu.Desktop.Tests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2017-03-31 16:55:07 +08:00
|
|
|
|
public class VisualTests
|
2017-02-09 18:24:53 +08:00
|
|
|
|
{
|
|
|
|
|
[Test]
|
2017-03-31 16:55:07 +08:00
|
|
|
|
public void TestVisualTests()
|
2017-02-09 18:24:53 +08:00
|
|
|
|
{
|
|
|
|
|
using (var host = new HeadlessGameHost())
|
|
|
|
|
{
|
2017-04-15 03:53:37 +08:00
|
|
|
|
RulesetCollection.Register(typeof(OsuRuleset));
|
|
|
|
|
RulesetCollection.Register(typeof(TaikoRuleset));
|
|
|
|
|
RulesetCollection.Register(typeof(ManiaRuleset));
|
|
|
|
|
RulesetCollection.Register(typeof(CatchRuleset));
|
2017-02-09 18:24:53 +08:00
|
|
|
|
|
2017-03-31 16:55:07 +08:00
|
|
|
|
host.Run(new AutomatedVisualTestGame());
|
2017-02-09 18:24:53 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|