mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Remove unused test
This commit is contained in:
parent
bac8900df7
commit
9531d6c813
@ -374,7 +374,8 @@ namespace Wabbajack.Common
|
|||||||
|
|
||||||
public byte[] ReadAllBytes()
|
public byte[] ReadAllBytes()
|
||||||
{
|
{
|
||||||
return File.ReadAllBytes(_path);
|
using var file = OpenShared();
|
||||||
|
return file.ReadAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AbsolutePath GetCurrentDirectory()
|
public static AbsolutePath GetCurrentDirectory()
|
||||||
@ -417,7 +418,7 @@ namespace Wabbajack.Common
|
|||||||
|
|
||||||
public FileStream OpenShared()
|
public FileStream OpenShared()
|
||||||
{
|
{
|
||||||
return File.Open(_path, FileMode.Open, FileAccess.Read);
|
return File.Open(_path, FileMode.Open, FileAccess.Read, FileShare.Read);
|
||||||
}
|
}
|
||||||
|
|
||||||
public FileStream WriteShared()
|
public FileStream WriteShared()
|
||||||
|
@ -160,31 +160,6 @@ namespace Wabbajack.Test
|
|||||||
Assert.False(extraFolder.Exists);
|
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]
|
[Fact]
|
||||||
public async Task SetScreenSizeTest()
|
public async Task SetScreenSizeTest()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user