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 1bfb9a3 commit 3c6e4ccCopy full SHA for 3c6e4cc
TestStack.FluentMVCTesting.Tests/Internal/ExpressionInspectorTests.cs
@@ -125,6 +125,15 @@ public void Correctly_parse_logical_or_operator()
125
Assert.AreEqual("text => ((text == \"any\") | (text.Length == 3))", actual);
126
}
127
128
+ [Test]
129
+ public void Correctly_parse_null_coalescing_operator()
130
+ {
131
+ Expression<Func<string, bool>> func =
132
+ text => text == ("" ?? "a");
133
+ ExpressionInspector sut = new ExpressionInspector();
134
+ var actual = sut.Inspect(func);
135
+ Assert.AreEqual("text => (text == (\"\" ?? \"a\"))", actual);
136
+ }
137
138
[Test]
139
public void Not_mistake_property_called_OrElse_for_conditional_or_operator()
0 commit comments