Skip to content

Commit 923fbd8

Browse files
committed
More specific test assertion
1 parent 92e6d45 commit 923fbd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/JsonApiDotNetCoreTests/UnitTests/FieldChains/FieldChainPatternParseTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void ParseFails(string patternText, string errorMessage)
4949
Action action = () => FieldChainPattern.Parse(patternSource.Text);
5050

5151
// Assert
52-
PatternFormatException exception = action.Should().Throw<PatternFormatException>().Which;
52+
PatternFormatException exception = action.Should().ThrowExactly<PatternFormatException>().Which;
5353
exception.Message.Should().Be(errorMessage);
5454
exception.Position.Should().Be(patternSource.Position);
5555
exception.Pattern.Should().Be(patternSource.Text);

0 commit comments

Comments
 (0)