Skip to content

Commit 47486bf

Browse files
committed
Support for parsing relational operator.
1 parent 5fedb9d commit 47486bf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

TestStack.FluentMVCTesting.Tests/Internal/ExpressionInspectorTests.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void Correctly_parse_equality_comparison_with_int_operands()
2727
}
2828

2929
[Test]
30-
public void Correctly_parse_inequality_comparison_with_int_operands()
30+
public void Correctly_parse_inequality_comparison()
3131
{
3232
Expression<Func<int, bool>> func = number => number != 5;
3333
ExpressionInspector sut = new ExpressionInspector();
@@ -44,5 +44,14 @@ public void Correctly_parse_equality_comparison_with_captured_constant_operand()
4444
var actual = sut.Inspect(func);
4545
Assert.AreEqual("number => number == " + Number, actual);
4646
}
47+
48+
[Test]
49+
public void Correctly_parse_relational_comparison()
50+
{
51+
Expression<Func<int, bool>> func = number => number < 5;
52+
ExpressionInspector sut = new ExpressionInspector();
53+
var actual = sut.Inspect(func);
54+
Assert.AreEqual("number => number < 5", actual);
55+
}
4756
}
4857
}

0 commit comments

Comments
 (0)