1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Group, rename and standardise tests

This commit is contained in:
Dean Herbert 2019-06-18 15:28:36 +09:00
parent 3fcb8081dd
commit 926a11ab8c
16 changed files with 44 additions and 46 deletions

View File

@ -10,14 +10,13 @@ using osu.Game.Tournament.Components;
using osu.Game.Tournament.Models;
using osu.Game.Tournament.Screens.Ladder.Components;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Components
{
public class TestSceneDrawableTournamentMatch : OsuTestScene
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(TournamentMatch),
typeof(DrawableTournamentMatch),
typeof(DrawableTournamentTeam),
};

View File

@ -7,7 +7,7 @@ using osu.Framework.MathUtils;
using osu.Game.Tournament.IPC;
using osu.Game.Tournament.Screens.Gameplay.Components;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Components
{
public class TestSceneMatchScoreDisplay : LadderTestScene
{

View File

@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
@ -13,9 +11,9 @@ using osu.Game.Rulesets;
using osu.Game.Tests.Visual;
using osu.Game.Tournament.Components;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Components
{
public class TestSceneBeatmapPanel : OsuTestScene
public class TestSceneTournamentBeatmapPanel : OsuTestScene
{
[Resolved]
private IAPIProvider api { get; set; }
@ -23,11 +21,6 @@ namespace osu.Game.Tournament.Tests
[Resolved]
private RulesetStore rulesets { get; set; }
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(TournamentBeatmapPanel),
};
[BackgroundDependencyLoader]
private void load()
{

View File

@ -11,7 +11,7 @@ using osu.Game.Tournament.IPC;
using osu.Game.Tournament.Models;
using osu.Game.Users;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Components
{
public class TestSceneTournamentMatchChatDisplay : OsuTestScene
{

View File

@ -6,7 +6,7 @@ using osu.Game.Tests.Visual;
using osu.Game.Tournament.Components;
using osu.Game.Tournament.Screens.Gameplay;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneGameplayScreen : OsuTestScene
{

View File

@ -0,0 +1,23 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Game.Graphics.Cursor;
using osu.Game.Tournament.Screens.Editors;
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneLadderEditorScreen : LadderTestScene
{
[BackgroundDependencyLoader]
private void load()
{
Add(new OsuContextMenuContainer
{
RelativeSizeAxes = Axes.Both,
Child = new LadderEditorScreen()
});
}
}
}

View File

@ -6,9 +6,9 @@ using osu.Framework.Graphics;
using osu.Game.Graphics.Cursor;
using osu.Game.Tournament.Screens.Ladder;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneLadderManager : LadderTestScene
public class TestSceneLadderScreen : LadderTestScene
{
[BackgroundDependencyLoader]
private void load()

View File

@ -6,9 +6,9 @@ using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Game.Tournament.Screens.MapPool;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneMapPool : LadderTestScene
public class TestSceneMapPoolScreen : LadderTestScene
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{

View File

@ -3,7 +3,7 @@
using osu.Game.Tournament.Screens.Editors;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneRoundEditorScreen : LadderTestScene
{

View File

@ -1,21 +1,14 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Game.Tests.Visual;
using osu.Game.Tournament.Screens.Schedule;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneSchedule : OsuTestScene
public class TestSceneScheduleScreen : OsuTestScene
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(ScheduleScreen)
};
[BackgroundDependencyLoader]
private void load()
{

View File

@ -1,21 +1,14 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using osu.Framework.Allocation;
using osu.Game.Tests.Visual;
using osu.Game.Tournament.Screens.Showcase;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneShowcase : OsuTestScene
public class TestSceneShowcaseScreen : OsuTestScene
{
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(ShowcaseScreen)
};
[BackgroundDependencyLoader]
private void load()
{

View File

@ -3,7 +3,7 @@
using osu.Game.Tournament.Screens.Editors;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneTeamEditorScreen : LadderTestScene
{

View File

@ -8,9 +8,9 @@ using osu.Framework.Graphics;
using osu.Game.Tournament.Models;
using osu.Game.Tournament.Screens.TeamIntro;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneTeamIntro : LadderTestScene
public class TestSceneTeamIntroScreen : LadderTestScene
{
[Cached]
private readonly Bindable<TournamentMatch> currentMatch = new Bindable<TournamentMatch>();

View File

@ -8,9 +8,9 @@ using osu.Framework.Graphics;
using osu.Game.Tournament.Models;
using osu.Game.Tournament.Screens.TeamWin;
namespace osu.Game.Tournament.Tests
namespace osu.Game.Tournament.Tests.Screens
{
public class TestSceneTeamWin : LadderTestScene
public class TestSceneTeamWinScreen : LadderTestScene
{
[Cached]
private readonly Bindable<TournamentMatch> currentMatch = new Bindable<TournamentMatch>();

View File

@ -7,7 +7,7 @@ using osu.Game.Tests.Visual;
namespace osu.Game.Tournament.Tests
{
public class TestSceneSceneManager : OsuTestScene
public class TestSceneTournamentSceneManager : OsuTestScene
{
[BackgroundDependencyLoader]
private void load(Storage storage)

View File

@ -10,7 +10,4 @@
<ItemGroup Label="Project References">
<ProjectReference Include="..\osu.Game\osu.Game.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Screens\Rounds" />
</ItemGroup>
</Project>