Revert "Add protection against migrating to a nested folder"

This reverts commit ef8375b442.
This commit is contained in:
Dean Herbert
2020-05-14 22:44:27 +09:00
parent ef8375b442
commit 827d75b152
2 changed files with 0 additions and 30 deletions

View File

@ -220,30 +220,6 @@ namespace osu.Game.Tests.NonVisual
}
}
[Test]
public void TestMigrationToNestedTargetFails()
{
using (HeadlessGameHost host = new CleanRunHeadlessGameHost(nameof(TestMigrationToSameTargetFails)))
{
try
{
var osu = loadOsu(host);
Assert.DoesNotThrow(() => osu.Migrate(customPath));
string subFolder = Path.Combine(customPath, "sub");
Directory.CreateDirectory(subFolder);
Assert.Throws<ArgumentException>(() => osu.Migrate(subFolder));
}
finally
{
host.Exit();
}
}
}
private OsuGameBase loadOsu(GameHost host)
{
var osu = new OsuGameBase();