예제 #1
0
        public void NoMatchWithOthers()
        {
            var pattern = new SequencePoidPattern();

            pattern.Match(typeof(TestEntity).GetProperty("Guid")).Should().Be.False();
            pattern.Match(typeof(TestEntity).GetProperty("Short")).Should().Be.False();
        }
예제 #2
0
        public void MatchWithAnyIntOrLong()
        {
            var pattern = new SequencePoidPattern();

            pattern.Match(typeof(TestEntity).GetProperty("Int")).Should().Be.True();
            pattern.Match(typeof(TestEntity).GetProperty("Long")).Should().Be.True();
        }
 public void NoMatchWithOthers()
 {
     var pattern = new SequencePoidPattern();
     pattern.Match(typeof(TestEntity).GetProperty("Guid")).Should().Be.False();
     pattern.Match(typeof(TestEntity).GetProperty("Short")).Should().Be.False();
 }
 public void MatchWithAnyIntOrLong()
 {
     var pattern = new SequencePoidPattern();
     pattern.Match(typeof(TestEntity).GetProperty("Int")).Should().Be.True();
     pattern.Match(typeof(TestEntity).GetProperty("Long")).Should().Be.True();
 }