示例#1
0
        public override bool Test(IParameters parameters)
        {
            IComparable comparable = Lhs.GetValue(parameters) as IComparable;

            if (comparable != null)
            {
                return(CompareTo(comparable, Rhs.GetValue(parameters)));
            }
            else if (!Lhs.HasValue(parameters))
            {
                return(true);
            }

            throw new Exception("LessThanOperator left hand side does not implement IComparable");
        }
示例#2
0
 public override bool Test(IParameters parameters)
 {
     return((Lhs.HasValue(parameters) || Rhs.HasValue(parameters)) &&
            (((Lhs.GetValue(parameters) as bool?) == true) || ((Rhs.GetValue(parameters) as bool?) == true)));
 }
示例#3
0
 public override bool Test(IParameters parameters)
 {
     return(Lhs.HasValue(parameters) &&
            Rhs.HasValue(parameters) &&
            !object.Equals(Lhs.GetValue(parameters), Rhs.GetValue(parameters)));
 }