public static FacetCheckResult Check(string value, FacetInfo facet, WhitespaceType whitespaceNormalization) { if (LengthFacetCheckHelper.ComputeLength(value, whitespaceNormalization) <= facet.intValue * 2) return FacetCheckResult.Success; return FacetCheckResult.Fail; }
public static FacetCheckResult Check (string value, FacetInfo facet, WhitespaceType whitespaceNormalization) { if (LengthFacetCheckHelper.IsEqual(value, facet.stringValue, whitespaceNormalization)) return FacetCheckResult.EnumSuccess; return FacetCheckResult.EnumFail; }