Skip to content

Commit ddb71ee

Browse files
committed
fix(tests): correct expected exception type in PipelineBuilderExceptionTests
- Updated test to expect `TargetInvocationException` instead of `NullReferenceException` for accurate assertion.
1 parent 1c9f732 commit ddb71ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/Paramore.Darker.Tests/PipelineBuilderExceptionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void ShouldThrowNullReferenceExceptionWhenInnerExceptionIsNull()
172172
var query = new NullInnerExceptionQuery();
173173

174174
// Act & Assert
175-
var exception = Should.Throw<NullReferenceException>(() => _queryProcessor.Execute(query));
175+
var exception = Should.Throw<TargetInvocationException>(() => _queryProcessor.Execute(query));
176176
exception.InnerException.ShouldBeNull();
177177
}
178178

0 commit comments

Comments
 (0)