Method ArgumentHasLength
ArgumentHasLength(Expression<Func<string>>, int)
Checks if the given string has the expected length
Declaration
public static void ArgumentHasLength(Expression<Func<string>> expression, int expectedLength)
Parameters
Type | Name | Description |
---|---|---|
Expression<Func<string>> | expression | Property expression. |
int | expectedLength | Expected length. |
ArgumentHasLength(string, string, int)
Checks if the given string has the expected length
Declaration
public static void ArgumentHasLength(string propertyValue, string paramName, int expectedLength)
Parameters
Type | Name | Description |
---|---|---|
string | propertyValue | Property value. |
string | paramName | Parameter name. |
int | expectedLength | Expected length. |