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 9ca765f commit fc4781cCopy full SHA for fc4781c
src/Stravaig.Configuration.Diagnostics.Tests/RegressionTests/LoggingEmptyKeyConfigTests.cs
@@ -47,7 +47,13 @@ public void TwoEmptyKeys()
47
var nullProperties = properties
48
.Where(p => p.Key is not ("_EmptyTopLevel" or "A_Regular_Key" or "{OriginalFormat}"))
49
.ToArray();
50
+
51
+#if NET6_0_OR_GREATER
52
+ foreach(var nullProperty in nullProperties)
53
+ nullProperty.Value.ShouldBeNull($"Property \"{nullProperty.Key}\" should have a null value.");
54
+#else
55
foreach(var nullProperty in nullProperties)
56
nullProperty.Value.ShouldBe("(null)", $"Property \"{nullProperty.Key}\" should have a dummy null value.");
57
+#endif
58
}
59
0 commit comments