public void NotMatchWithStringProperty() { var mi = typeof(Entity).GetProperty("Simple"); var p = new ArrayCollectionPattern(); p.Match(mi).Should().Be.False(); }
public void NotMatchWithCollectionField() { var mi = typeof(Entity).GetField("others", BindingFlags.NonPublic | BindingFlags.Instance); var p = new ArrayCollectionPattern(); p.Match(mi).Should().Be.False(); }
public void MatchWithCollectionPropertyAndArrayField() { var mi = typeof(Entity).GetProperty("Emails"); var p = new ArrayCollectionPattern(); p.Match(mi).Should().Be.True(); }
public void MatchWithArrayField() { var mi = typeof(Entity).GetField("emails", BindingFlags.NonPublic | BindingFlags.Instance); var p = new ArrayCollectionPattern(); p.Match(mi).Should().Be.True(); }
public void MatchWithArrayProperty() { var mi = typeof(Entity).GetProperty("NickNames"); var p = new ArrayCollectionPattern(); p.Match(mi).Should().Be.True(); }
public void NotMatchWithByteArrayProperty() { var mi = typeof(Entity).GetProperty("Photo"); var p = new ArrayCollectionPattern(); p.Match(mi).Should().Be.False(); }