Ejemplo n.º 1
0
        public void ShouldMatchFilterPredicateByPropertyType()
        {
            PropertyItem property = new PropertyItem(new PropertyGrid(), new BusinessObject(), BusinessObject.ExtractProperty("ReadOnlyProperty"));

            Assert.IsTrue(property.MatchesPredicate(new PropertyFilterPredicate("string")));
        }
Ejemplo n.º 2
0
        public void ShouldMatchFilterPredicateByDisplayName()
        {
            PropertyItem property = new PropertyItem(new PropertyGrid(), new BusinessObject(), BusinessObject.ExtractProperty("Name"));

            Assert.IsTrue(property.MatchesPredicate(new PropertyFilterPredicate("Login")));
        }
Ejemplo n.º 3
0
        public void ShouldFailMatchingNullPredicate()
        {
            PropertyItem property = new PropertyItem(new PropertyGrid(), new BusinessObject(), BusinessObject.ExtractProperty("Name"));

            Assert.IsFalse(property.MatchesPredicate(null));
        }
Ejemplo n.º 4
0
 public void ShouldMatchFilterPredicateByPropertyType()
 {
     PropertyItem property = new PropertyItem(new PropertyGrid(), new BusinessObject(), BusinessObject.ExtractProperty("ReadOnlyProperty"));
       Assert.IsTrue(property.MatchesPredicate(new PropertyFilterPredicate("string")));
 }
Ejemplo n.º 5
0
 public void ShouldMatchFilterPredicateByDisplayName()
 {
     PropertyItem property = new PropertyItem(new PropertyGrid(), new BusinessObject(), BusinessObject.ExtractProperty("Name"));
       Assert.IsTrue(property.MatchesPredicate(new PropertyFilterPredicate("Login")));
 }
Ejemplo n.º 6
0
 public void ShouldFailMatchingNullPredicate()
 {
     PropertyItem property = new PropertyItem(new PropertyGrid(), new BusinessObject(), BusinessObject.ExtractProperty("Name"));
       Assert.IsFalse(property.MatchesPredicate(null));
 }