/// <summary> /// Adds an greater-than condition to the behavior statement. /// </summary> /// <param name="lessThanValue">Check if tag value is less than this specified value.</param> public FluentTagThenInterface ValueLessThan(object lessThanValue) { _condition = newValue => { var v1 = (IComparable)newValue; var v2 = (IComparable)lessThanValue; return(v1.CompareTo(v2) < 0); }; _fluentTagThenInterface = new FluentTagThenInterface(_looseTagStorage, _tag); return(_fluentTagThenInterface); }
/// <summary> /// Adds an equals condition to the behavior statement. /// </summary> /// <param name="valueIs">The value to compare for.</param> public FluentTagThenInterface ValueEquals(object valueIs) { _condition = newValue => newValue.Equals(valueIs); _fluentTagThenInterface = new FluentTagThenInterface(_looseTagStorage, _tag); return(_fluentTagThenInterface); }