/// <summary> /// Visits a <see cref="QueryClrEnumType"/>. /// </summary> /// <param name="type">Query type being visited.</param> /// <returns>The result of visiting this query type.</returns> public ComparisonResult Visit(QueryClrEnumType type) { return(this.parent.ComparePrimitive((QueryScalarValue)this.expectedValue, this.actualValue, this.path, this.shouldThrow)); }
/// <summary> /// Visits a <see cref="QueryClrEnumType"/>. /// </summary> /// <param name="type">Query type being visited.</param> /// <returns>The result of visiting this query type.</returns> public ComparisonResult Visit(QueryClrEnumType type) { throw new TaupoNotSupportedException("Comparison of enums is not supported."); }
/// <summary> /// Creates a QueryValue of a given type. /// </summary> /// <param name="type">Type of the QueryValue that will be generated.</param> /// <returns>QueryValue representing the provided object.</returns> public QueryValue Visit(QueryClrEnumType type) { return(this.VisitScalar(type)); }