mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added TESAllianceDownload Test
This commit is contained in:
parent
8b62eb42c3
commit
b1bd736d8c
@ -335,7 +335,32 @@ namespace Wabbajack.Test
|
||||
Assert.AreEqual(File.ReadAllText(filename), "Cheese for Everyone!");
|
||||
}
|
||||
|
||||
/* WAITING FOR APPROVAL BY MODERATOR (you need to have your submitted file approved before it goes live)
|
||||
/* WAITING FOR APPROVAL BY MODERATOR
|
||||
[TestMethod]
|
||||
public async Task TESAllianceDownload()
|
||||
{
|
||||
await DownloadDispatcher.GetInstance<TESAllianceDownloader>().Prepare();
|
||||
const string ini = "[General]\n" +
|
||||
"directURL=http://tesalliance.org/forums/index.php?/files/file/2035-wabbajack-test-file/";
|
||||
|
||||
var state = (AbstractDownloadState)await DownloadDispatcher.ResolveArchive(ini.LoadIniString());
|
||||
|
||||
Assert.IsNotNull(state);
|
||||
|
||||
var converted = await state.RoundTripState();
|
||||
Assert.IsTrue(await converted.Verify(new Archive{Size = 20}));
|
||||
var filename = Guid.NewGuid().ToString();
|
||||
|
||||
Assert.IsTrue(converted.IsWhitelisted(new ServerWhitelist { AllowedPrefixes = new List<string>() }));
|
||||
|
||||
await converted.Download(new Archive { Name = "TESAlliance Test.zip" }, filename);
|
||||
|
||||
Assert.AreEqual("eSIyd+KOG3s=", filename.FileHash());
|
||||
|
||||
Assert.AreEqual(File.ReadAllText(filename), "Cheese for Everyone!");
|
||||
}*/
|
||||
|
||||
/* WAITING FOR APPROVAL BY MODERATOR
|
||||
[TestMethod]
|
||||
public async Task DeadlyStreamDownloader()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user