diff --git a/Wabbajack.Test/SanityTests.cs b/Wabbajack.Test/SanityTests.cs index a7407301..7fd28dca 100644 --- a/Wabbajack.Test/SanityTests.cs +++ b/Wabbajack.Test/SanityTests.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using Microsoft.VisualStudio.TestTools.UnitTesting; using Wabbajack.Lib; +using Wabbajack.Lib.CompilationSteps.CompilationErrors; using File = Alphaleonis.Win32.Filesystem.File; using Path = Alphaleonis.Win32.Filesystem.Path; @@ -127,9 +128,7 @@ namespace Wabbajack.Test // Update the file and verify that it throws an error. utils.GenerateRandomFileData(game_file, 20); var exception = Assert.ThrowsException(() => Install(compiler)); - Assert.AreEqual(exception.InnerExceptions.First().Message, "Game ESM hash doesn't match, is the ESM already cleaned? Please verify your local game files."); - - + Assert.IsInstanceOfType(exception.InnerExceptions.First(), typeof(InvalidGameESMError)); } [TestMethod]