コード例 #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();
        }
コード例 #3
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();
 }
コード例 #4
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();
 }