Exemplo n.º 1
0
        public void MatchesNullForReferenceType()
        {
            var matcher = new ConditionalMatcher <string>(x => x == null);

            Assert.True(matcher.Matches(default(string)));
        }
Exemplo n.º 2
0
        public void DoesNotMatchNullForNonNullableValueType()
        {
            var matcher = new ConditionalMatcher <PlatformID>(_ => true);

            Assert.False(matcher.Matches(null));
        }
Exemplo n.º 3
0
        public void MatchesNullForNullableValueType()
        {
            var matcher = new ConditionalMatcher <PlatformID?>(_ => true);

            Assert.True(matcher.Matches(null));
        }