mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
A unit test bugfix
This commit is contained in:
@ -128,8 +128,8 @@ namespace Wabbajack.Test
|
|||||||
|
|
||||||
// Update the file and verify that it throws an error.
|
// Update the file and verify that it throws an error.
|
||||||
utils.GenerateRandomFileData(game_file, 20);
|
utils.GenerateRandomFileData(game_file, 20);
|
||||||
var exception = Assert.ThrowsException<AggregateException>(() => Install(compiler));
|
var exception = await Assert.ThrowsExceptionAsync<InvalidGameESMError>(async () => await Install(compiler));
|
||||||
Assert.IsInstanceOfType(exception.InnerExceptions.First(), typeof(InvalidGameESMError));
|
Assert.IsInstanceOfType(exception, typeof(InvalidGameESMError));
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
Reference in New Issue
Block a user