From 7145b72a69a54e6d56b72b2cc9e588af2dd2ded3 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Thu, 26 Dec 2019 11:21:57 -0700 Subject: [PATCH] Test fixes --- Wabbajack.Common/Wabbajack.Common.csproj | 3 +++ Wabbajack.Test/DownloaderTests.cs | 3 +++ Wabbajack.Test/Wabbajack.Test.csproj | 12 ++++++++++++ 3 files changed, 18 insertions(+) diff --git a/Wabbajack.Common/Wabbajack.Common.csproj b/Wabbajack.Common/Wabbajack.Common.csproj index 08bc2583..03ff59a2 100644 --- a/Wabbajack.Common/Wabbajack.Common.csproj +++ b/Wabbajack.Common/Wabbajack.Common.csproj @@ -6,10 +6,12 @@ + + @@ -25,6 +27,7 @@ + diff --git a/Wabbajack.Test/DownloaderTests.cs b/Wabbajack.Test/DownloaderTests.cs index 676a3ccf..75144bac 100644 --- a/Wabbajack.Test/DownloaderTests.cs +++ b/Wabbajack.Test/DownloaderTests.cs @@ -306,6 +306,8 @@ namespace Wabbajack.Test [TestMethod] public async Task GameFileSourceDownload() { + // Test mode off for this test + Consts.TestMode = false; await DownloadDispatcher.GetInstance().Prepare(); var ini = $@"[General] gameName={Game.SkyrimSpecialEdition.MetaData().MO2ArchiveName} @@ -325,6 +327,7 @@ namespace Wabbajack.Test Assert.AreEqual("/DLG/LjdGXI=", Utils.FileHash(filename)); CollectionAssert.AreEqual(File.ReadAllBytes(Path.Combine(Game.SkyrimSpecialEdition.MetaData().GameLocation(), "Data/Update.esm")), File.ReadAllBytes(filename)); + Consts.TestMode = true; } } diff --git a/Wabbajack.Test/Wabbajack.Test.csproj b/Wabbajack.Test/Wabbajack.Test.csproj index 815ba1c2..47f5659b 100644 --- a/Wabbajack.Test/Wabbajack.Test.csproj +++ b/Wabbajack.Test/Wabbajack.Test.csproj @@ -32,6 +32,8 @@ x64 CS1998 CS4014 + true + true pdbonly @@ -42,6 +44,8 @@ 4 CS1998 CS4014 + true + true true @@ -51,6 +55,8 @@ x64 prompt MinimumRecommendedRules.ruleset + true + true bin\x64\Release\ @@ -60,6 +66,8 @@ x64 prompt MinimumRecommendedRules.ruleset + true + true true @@ -70,6 +78,8 @@ 7.3 prompt MinimumRecommendedRules.ruleset + true + true bin\x86\Release\ @@ -80,6 +90,8 @@ 7.3 prompt MinimumRecommendedRules.ruleset + true + true