Skip to content

Commit f6a35c5

Browse files
committed
Support for parsing inequality operator with integral operands.
1 parent 242e082 commit f6a35c5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

TestStack.FluentMVCTesting.Tests/Internal/ExpressionInspectorTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,14 @@ public void Correctly_parse_equality_comparison_with_int_operands()
2525
var actual = sut.Inspect(func);
2626
Assert.AreEqual("number => number == 5", actual);
2727
}
28+
29+
[Test]
30+
public void Correctly_parse_inequality_comparison_with_int_operands()
31+
{
32+
Expression<Func<int, bool>> func = number => number != 5;
33+
ExpressionInspector sut = new ExpressionInspector();
34+
var actual = sut.Inspect(func);
35+
Assert.AreEqual("number => number != 5", actual);
36+
}
2837
}
2938
}

0 commit comments

Comments
 (0)