Esempio n. 1
0
 public bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     if (predicate == null)
     {
         return(false);
     }
     return(predicate.Match(this.Name));
 }
Esempio n. 2
0
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     if (!predicate.Match("Trigger"))
     {
         return(predicate.Match("TriggerType"));
     }
     return(true);
 }
Esempio n. 3
0
        public void ShouldMatchText()
        {
            PropertyFilterPredicate predicate = new PropertyFilterPredicate("test");

            Assert.IsTrue(predicate.Match("Test"));
            Assert.IsTrue(predicate.Match("TestMe"));
            Assert.IsTrue(predicate.Match("ThisIsATest"));
        }
Esempio n. 4
0
 /// <summary>
 ///     Checks whether the entry matches the filtering predicate.
 /// </summary>
 /// <param name="predicate">The filtering predicate.</param>
 /// <returns>
 ///     <c>true</c> if entry matches predicate; otherwise, <c>false</c>.
 /// </returns>
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     if (predicate == null)
     {
         return(false);
     }
     if (!predicate.Match(DisplayName))
     {
         return((PropertyType != null)
                                 ? predicate.Match(PropertyType.Name)
                                 : false);
     }
     return(true);
 }
Esempio n. 5
0
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     return(false);
 }
Esempio n. 6
0
 /// <summary>
 ///     Checks whether the entry matches the filtering predicate.
 /// </summary>
 /// <param name="predicate">The filtering predicate.</param>
 /// <returns>
 ///     <c>true</c> if entry matches predicate; otherwise, <c>false</c>.
 /// </returns>
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     return(_properties.All(property => property.MatchesPredicate(predicate)));
 }
Esempio n. 7
0
 /// <summary>
 /// Checks whether the entry matches the filtering predicate.
 /// </summary>
 /// <param name="predicate">The filtering predicate.</param>
 /// <returns><c>true</c> if entry matches predicate; otherwise, <c>false</c>.</returns>
 public abstract bool MatchesPredicate(PropertyFilterPredicate predicate);
Esempio n. 8
0
 public virtual bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     return(predicate.Match(this.get_CategoryName()));
 }
Esempio n. 9
0
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     return(predicate.Match(this.CategoryName));
 }
 public override bool MatchesPredicate(PropertyFilterPredicate predicate)
 {
     return(this.HasConditions && (predicate.Match("LeftOperand") || predicate.Match("RightOperand") || predicate.Match("Operator")) || predicate.Match("Conditions"));
 }
Esempio n. 11
0
        public void ShouldInitializeMatchTextUpperCased()
        {
            PropertyFilterPredicate predicate = new PropertyFilterPredicate("test");

            Assert.AreEqual <string>("TEST", predicate.MatchText);
        }