We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c6e4cc commit 71e6564Copy full SHA for 71e6564
TestStack.FluentMVCTesting.Tests/Internal/ExpressionInspectorTests.cs
@@ -153,6 +153,16 @@ public void Correctly_parse_expression_whose_source_text_contains_parentheses()
153
var actual = sut.Inspect(func);
154
Assert.AreEqual("post => post.Title.Contains(\"\")", actual);
155
}
156
+
157
+ [Test]
158
+ public void Correctly_parse_logical_xor_operator()
159
+ {
160
+ Expression<Func<string, bool>> func =
161
+ text => text == "any" ^ text.Length == 3;
162
+ ExpressionInspector sut = new ExpressionInspector();
163
+ var actual = sut.Inspect(func);
164
+ Assert.AreEqual("text => ((text == \"any\") ^ (text.Length == 3))", actual);
165
+ }
166
167
168
public class PostViewModel
0 commit comments