public void MatchWithGuidMemberOfInheritedInterface()
        {
            var pattern = new PoidGuidPattern();

            pattern.Match(TypeExtensions.DecodeMemberAccessExpression <IMyEntity>(m => m.GuidProp)).Should().Be(true);
            pattern.Match(TypeExtensions.DecodeMemberAccessExpressionOf <IMyEntity>(m => m.GuidProp)).Should().Be(true);
        }
        public void NoMatchWithOthersTypes()
        {
            var pattern = new PoidGuidPattern();

            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 PoidGuidPattern();

            pattern.Match(null).Should().Be(false);
        }
        public void MatchWithGuidMember()
        {
            var pattern = new PoidGuidPattern();

            pattern.Match(TypeExtensions.DecodeMemberAccessExpression <MyClass>(m => m.GuidProp)).Should().Be(true);
        }