Passing a null in as the match value without a predicate condition matching against null currently throws a NullReferenceException inside Simplicity:
string name = null;
name.Match()
.With("ben", "it me!")
.Else("unknown")
.Do()
.Dump();
This should return "unknown".
Matching against (string)null also throws a NullReferenceException. This clause should match (string)null but it doesn't:
.With((string)null, "match on null")
Passing a null in as the match value without a predicate condition matching against null currently throws a
NullReferenceExceptioninside Simplicity:This should return
"unknown".Matching against
(string)nullalso throws aNullReferenceException. This clause should match(string)nullbut it doesn't: