Skip to content

Commit 3b9d55d

Browse files
committed
build: fix unit tests from exception change
1 parent a4bdc22 commit 3b9d55d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

QueryKit.UnitTests/FilterParserTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public void can_throw_error_when_comparison_operator_not_recognized()
488488
var input = $"""Age ^#$%^%@ 25""";
489489
var act = () => FilterParser.ParseFilter<TestingPerson>(input);
490490
act.Should().Throw<ParsingException>()
491-
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.");
491+
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.*");
492492
}
493493

494494
[Fact]
@@ -497,7 +497,7 @@ public void can_throw_error_when_logical_operator_not_recognized()
497497
var input = $"""Title == "temp" %$@#^ Age == 25""";
498498
var act = () => FilterParser.ParseFilter<TestingPerson>(input);
499499
act.Should().Throw<ParsingException>()
500-
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.");
500+
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.*");
501501
}
502502

503503
[Fact]
@@ -506,7 +506,7 @@ public void can_throw_error_when_missing_double_quotes_not_recognized()
506506
var input = $"""Title == temp string here""";
507507
var act = () => FilterParser.ParseFilter<TestingPerson>(input);
508508
act.Should().Throw<ParsingException>()
509-
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.");
509+
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.*");
510510
}
511511

512512
[Fact]
@@ -518,7 +518,7 @@ public void can_throw_error_when_property_has_space()
518518
var input = $"""{propertyName} == 25""";
519519
var act = () => FilterParser.ParseFilter<TestingPerson>(input);
520520
act.Should().Throw<UnknownFilterPropertyException>()
521-
.WithMessage($"The filter property '{firstWord}' was not recognized.");
521+
.WithMessage($"The filter property '{firstWord}' was not recognized.*");
522522
}
523523

524524
[Fact]
@@ -788,7 +788,7 @@ public void can_throw_exception_when_invalid_enum_value()
788788
var input = $"""BirthMonth == invalid""";
789789
var act = () => FilterParser.ParseFilter<TestingPerson>(input);
790790
act.Should().Throw<ParsingException>()
791-
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.");
791+
.WithMessage("There was a parsing failure, likely due to an invalid comparison or logical operator. You may also be missing double quotes surrounding a string or guid.*");
792792
}
793793
}
794794

0 commit comments

Comments
 (0)