We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6a35c5 commit 5fedb9dCopy full SHA for 5fedb9d
1 file changed
TestStack.FluentMVCTesting.Tests/Internal/ExpressionInspectorTests.cs
@@ -34,5 +34,15 @@ public void Correctly_parse_inequality_comparison_with_int_operands()
34
var actual = sut.Inspect(func);
35
Assert.AreEqual("number => number != 5", actual);
36
}
37
+
38
+ [Test]
39
+ public void Correctly_parse_equality_comparison_with_captured_constant_operand()
40
+ {
41
+ const int Number = 5;
42
+ Expression<Func<int, bool>> func = number => number == Number;
43
+ ExpressionInspector sut = new ExpressionInspector();
44
+ var actual = sut.Inspect(func);
45
+ Assert.AreEqual("number => number == " + Number, actual);
46
+ }
47
48
0 commit comments