コード例 #1
0
 public void NotMatchWithCollectionProperty()
 {
     var mi = typeof(EntityWithSets).GetProperty("Others");
     var p = new SetCollectionPattern();
     p.Match(mi).Should().Be.False();
 }
コード例 #2
0
 public void NotMatchWithCollectionField()
 {
     var mi = typeof(EntityWithSets).GetField("others", BindingFlags.NonPublic | BindingFlags.Instance);
     var p = new SetCollectionPattern();
     p.Match(mi).Should().Be.False();
 }
コード例 #3
0
 public void MatchWithSetField()
 {
     var mi = typeof(EntityWithSets).GetField("emails", BindingFlags.NonPublic | BindingFlags.Instance);
     var p = new SetCollectionPattern();
     p.Match(mi).Should().Be.True();
 }
コード例 #4
0
 public void MatchWithSetProperty()
 {
     var mi = typeof (EntityWithSets).GetProperty("NickNames");
     var p = new SetCollectionPattern();
     p.Match(mi).Should().Be.True();
 }
コード例 #5
0
 public void MatchWithCollectionPropertyAndSetField()
 {
     var mi = typeof(EntityWithSets).GetProperty("Emails");
     var p = new SetCollectionPattern();
     p.Match(mi).Should().Be.True();
 }