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