diff --git a/Wabbajack.Test/SanityTests.cs b/Wabbajack.Test/SanityTests.cs index 524526f1..411ad9d3 100644 --- a/Wabbajack.Test/SanityTests.cs +++ b/Wabbajack.Test/SanityTests.cs @@ -128,8 +128,8 @@ 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.IsInstanceOfType(exception.InnerExceptions.First(), typeof(InvalidGameESMError)); + var exception = await Assert.ThrowsExceptionAsync(async () => await Install(compiler)); + Assert.IsInstanceOfType(exception, typeof(InvalidGameESMError)); } [TestMethod]