A unit test bugfix

This commit is contained in:
Justin Swanson 2019-12-22 22:51:20 -06:00
parent 0e66b31f64
commit 87ed68c0b8

View File

@ -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<AggregateException>(() => Install(compiler));
Assert.IsInstanceOfType(exception.InnerExceptions.First(), typeof(InvalidGameESMError));
var exception = await Assert.ThrowsExceptionAsync<InvalidGameESMError>(async () => await Install(compiler));
Assert.IsInstanceOfType(exception, typeof(InvalidGameESMError));
}
[TestMethod]