Exemplo n.º 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");
        }
Exemplo n.º 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)));
 }
Exemplo n.º 3
0
 public override bool Test(IParameters parameters)
 {
     return(Lhs.HasValue(parameters) &&
            Rhs.HasValue(parameters) &&
            !object.Equals(Lhs.GetValue(parameters), Rhs.GetValue(parameters)));
 }