1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Change type from TournamentStorage to Storage in tests

This commit is contained in:
Shivam 2020-06-24 02:37:59 +02:00
parent af11340849
commit 839f197111

View File

@ -10,7 +10,6 @@ using osu.Framework;
using osu.Framework.Allocation;
using osu.Framework.Platform;
using osu.Game.Tournament.Configuration;
using osu.Game.Tournament.IO;
using osu.Game.Tests;
namespace osu.Game.Tournament.Tests.NonVisual
@ -26,7 +25,7 @@ namespace osu.Game.Tournament.Tests.NonVisual
try
{
var osu = loadOsu(host);
var storage = osu.Dependencies.Get<TournamentStorage>();
var storage = osu.Dependencies.Get<Storage>();
var defaultStorage = Path.Combine(tournamentBasePath(nameof(TestDefaultDirectory)), "default");
Assert.That(storage.GetFullPath("."), Is.EqualTo(defaultStorage));
}
@ -57,7 +56,7 @@ namespace osu.Game.Tournament.Tests.NonVisual
{
var osu = loadOsu(host);
storage = osu.Dependencies.Get<TournamentStorage>();
storage = osu.Dependencies.Get<Storage>();
Assert.That(storage.GetFullPath("."), Is.EqualTo(Path.Combine(tournamentBasePath(nameof(TestCustomDirectory)), "custom")));
}
@ -113,7 +112,7 @@ namespace osu.Game.Tournament.Tests.NonVisual
{
var osu = loadOsu(host);
var storage = osu.Dependencies.Get<TournamentStorage>();
var storage = osu.Dependencies.Get<Storage>();
var migratedPath = Path.Combine(tournamentBasePath(nameof(TestMigration)), "default");