We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c79412c commit f854ec0Copy full SHA for f854ec0
IntelliTect.TestTools.TestFramework.Tests/TestCaseTests/TestFailureTests.cs
@@ -51,9 +51,8 @@ public async Task AsyncBlockThrowsProperlyCatchAndLogException()
51
52
var ex = await Assert.ThrowsAsync<TestCaseException>(() => tc.ExecuteAsync());
53
Assert.False(tc.Passed);
54
- Assert.NotNull(ex.InnerException);
55
- Assert.IsType<InvalidOperationException>(ex.InnerException);
56
- Assert.Contains("oops", ex.InnerException!.Message, StringComparison.InvariantCultureIgnoreCase);
+ var invalidOp = Assert.IsType<InvalidOperationException>(ex.InnerException);
+ Assert.Contains("oops", invalidOp.Message, StringComparison.InvariantCultureIgnoreCase);
57
}
58
59
0 commit comments