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

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

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

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