We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7dd185f commit 3b44253Copy full SHA for 3b44253
2 files changed
PSql.Engine.Tests/SqlCmdPreprocessorTests.cs
@@ -52,6 +52,12 @@ public void SetVariables_EntryHasEmptyKey()
52
TestSetVariablesWith(entry: new DictionaryEntry("", "value"));
53
}
54
55
+ [Test]
56
+ public void SetVariables_EntryHasNullValue()
57
+ {
58
+ TestSetVariablesWith(entry: new DictionaryEntry("a", null));
59
+ }
60
+
61
private static void TestSetVariablesWith(object entry)
62
{
63
var preprocessor = new SqlCmdPreprocessor();
PSql.Engine/SqlCmdPreprocessor.cs
@@ -34,7 +34,7 @@ public bool EnableVariableReplacementInComments
34
/// </param>
35
public void SetVariables(IDictionary? entries)
36
37
- if (entries == null)
+ if (entries is null)
38
return;
39
40
var variables = _preprocessor.Variables;
0 commit comments