Skip to content

Commit 0904828

Browse files
b0wterthomhurst
andauthored
Fixed output of 'BetweenAssertCondition' (#1786)
Output in case of failure is now properly displaying the lower and upper bound instead of the lower bound twice Co-authored-by: Tom Longhurst <30480171+thomhurst@users.noreply.github.com>
1 parent 81f959a commit 0904828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TUnit.Assertions/Assertions/Comparables/Conditions/BetweenAssertCondition.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public class BetweenAssertCondition<TActual>(TActual minimum, TActual maximum) :
55
{
66
private bool _inclusiveBounds;
77

8-
protected override string GetExpectation() => $"to be between {minimum} & {minimum} ({GetRange()} Range)";
8+
protected override string GetExpectation() => $"to be between {minimum} & {maximum} ({GetRange()} Range)";
99

1010
protected override Task<AssertionResult> GetResult(TActual? actualValue, Exception? exception)
1111
{

0 commit comments

Comments
 (0)