Update tests in line with framework changes

This commit is contained in:
Dean Herbert
2020-05-07 18:12:11 +09:00
parent 7781408643
commit 90e17853a8

View File

@ -25,7 +25,7 @@ namespace osu.Game.Tests.NonVisual
var osu = loadOsu(host); var osu = loadOsu(host);
var storage = osu.Dependencies.Get<Storage>(); var storage = osu.Dependencies.Get<Storage>();
string defaultStorageLocation = Path.Combine(Environment.CurrentDirectory, $"headless-{nameof(TestDefaultDirectory)}"); string defaultStorageLocation = Path.Combine(Environment.CurrentDirectory, $"headless", nameof(TestDefaultDirectory));
Assert.That(storage.GetFullPath("."), Is.EqualTo(defaultStorageLocation)); Assert.That(storage.GetFullPath("."), Is.EqualTo(defaultStorageLocation));
} }
@ -41,7 +41,7 @@ namespace osu.Game.Tests.NonVisual
{ {
using (var host = new HeadlessGameHost(nameof(TestCustomDirectory))) using (var host = new HeadlessGameHost(nameof(TestCustomDirectory)))
{ {
string headlessPrefix = $"headless-{nameof(TestCustomDirectory)}"; string headlessPrefix = Path.Combine("headless", nameof(TestCustomDirectory));
// need access before the game has constructed its own storage yet. // need access before the game has constructed its own storage yet.
Storage storage = new DesktopStorage(headlessPrefix, host); Storage storage = new DesktopStorage(headlessPrefix, host);