Beispiel #1
0
        public void NoMatchWithOthersTypes()
        {
            var pattern = new PoidIntPattern();

            pattern.Match(TypeExtensions.DecodeMemberAccessExpression <MyClass>(m => m.StringProp)).Should().Be(false);
            pattern.Match(TypeExtensions.DecodeMemberAccessExpression <MyClass>(m => m.ObjectProp)).Should().Be(false);
        }
Beispiel #2
0
        public void NoMatchWithNullMember()
        {
            var pattern = new PoidIntPattern();

            pattern.Match(null).Should().Be(false);
        }
Beispiel #3
0
        public void MatchWithLongMember()
        {
            var pattern = new PoidIntPattern();

            pattern.Match(TypeExtensions.DecodeMemberAccessExpression <MyClass>(m => m.LongProp)).Should().Be(true);
        }
 public void NoMatchWithOthersTypes()
 {
     var pattern = new PoidIntPattern();
     pattern.Match(TypeExtensions.DecodeMemberAccessExpression<MyClass>(m => m.StringProp)).Should().Be(false);
     pattern.Match(TypeExtensions.DecodeMemberAccessExpression<MyClass>(m => m.ObjectProp)).Should().Be(false);
 }
 public void NoMatchWithNullMember()
 {
     var pattern = new PoidIntPattern();
     pattern.Match(null).Should().Be(false);
 }
 public void MatchWithLongMember()
 {
     var pattern = new PoidIntPattern();
     pattern.Match(TypeExtensions.DecodeMemberAccessExpression<MyClass>(m => m.LongProp)).Should().Be(true);
 }