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); }
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 MatchWithLongMember() { var pattern = new PoidIntPattern(); pattern.Match(TypeExtensions.DecodeMemberAccessExpression<MyClass>(m => m.LongProp)).Should().Be(true); }