public void MatchesNullForReferenceType() { var matcher = new ConditionalMatcher <string>(x => x == null); Assert.True(matcher.Matches(default(string))); }
public void DoesNotMatchNullForNonNullableValueType() { var matcher = new ConditionalMatcher <PlatformID>(_ => true); Assert.False(matcher.Matches(null)); }
public void MatchesNullForNullableValueType() { var matcher = new ConditionalMatcher <PlatformID?>(_ => true); Assert.True(matcher.Matches(null)); }