Remove unused test

This commit is contained in:
Timothy Baldridge 2020-05-04 22:08:00 -06:00
parent bac8900df7
commit 9531d6c813
2 changed files with 3 additions and 27 deletions

View File

@ -374,7 +374,8 @@ namespace Wabbajack.Common
public byte[] ReadAllBytes()
{
return File.ReadAllBytes(_path);
using var file = OpenShared();
return file.ReadAll();
}
public static AbsolutePath GetCurrentDirectory()
@ -417,7 +418,7 @@ namespace Wabbajack.Common
public FileStream OpenShared()
{
return File.Open(_path, FileMode.Open, FileAccess.Read);
return File.Open(_path, FileMode.Open, FileAccess.Read, FileShare.Read);
}
public FileStream WriteShared()

View File

@ -160,31 +160,6 @@ namespace Wabbajack.Test
Assert.False(extraFolder.Exists);
}
[Fact]
public async Task CleanedESMTest()
{
var profile = utils.AddProfile();
var mod = utils.AddMod("Cleaned ESMs");
var updateEsm = utils.AddModFile(mod, @"Update.esm", 10);
await utils.Configure();
var gameFile = utils.GameFolder.Combine("Data", "Update.esm");
utils.GenerateRandomFileData(gameFile, 20);
var modlist = await CompileAndInstall(profile);
utils.VerifyInstalledFile(mod, @"Update.esm");
var compiler = await ConfigureAndRunCompiler(profile);
// Update the file and verify that it throws an error.
utils.GenerateRandomFileData(gameFile, 20);
var exception = await Assert.ThrowsAsync<InvalidGameESMError>(async () => await Install(compiler));
Assert.IsAssignableFrom<InvalidGameESMError>(exception);
}
[Fact]
public async Task SetScreenSizeTest()
{