From 87ed68c0b8fc908a76ca8c96f51c97ee5ad8c504 Mon Sep 17 00:00:00 2001 From: Justin Swanson Date: Sun, 22 Dec 2019 22:51:20 -0600 Subject: [PATCH] A unit test bugfix --- Wabbajack.Test/SanityTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]