|
Joutsen v0.5.0+12-g5dd5f7e
|
A nunit constraint to compare strings which offers formatting and ignoring of line breaks. More...
Public Member Functions | |
| EqualStringsConstraint (String expected, params object[] parameters) | |
| Creates a new instance of the constraint. More... | |
| EqualStringsConstraint (String expected, Map< string, object > parameters) | |
| Creates a new instance of the constraint. More... | |
| EqualStringsConstraint (String expected, object parameter) | |
| Creates a new instance of the constraint. More... | |
| override ConstraintResult | ApplyTo< TActual > (TActual actual) |
Applies the constraint to the actual value. More... | |
Properties | |
| bool | CaseInsensitive [get] |
| Determines wether the evaluation should ignore the case of the strings characters. More... | |
| bool | ClipStrings [get] |
| Determines wether whitespaces should be removed from the start and end of the actual string before the evaluation of the constraint. More... | |
| bool | WithLineBreaks [get] |
| Determines whether line breaks should be removed from the actual string before the evaluation of the constraint. More... | |
| EqualStringsConstraint | IgnoreCase [get] |
| Creates a constraint that will ignore the case of the compared strings. More... | |
| EqualStringsConstraint | NoClip [get] |
| Creates a constraint that will not remove the whitespaces from the beginning and end of the strings. More... | |
| EqualStringsConstraint | IgnoreLineBreaks [get] |
| Creates a constraint that will ignore the line breaks of the compared strings. More... | |
| override string | Description [get] |
| Provide a description of the constraint for messages. More... | |
A nunit constraint to compare strings which offers formatting and ignoring of line breaks.
| Joutsen.NUnit3.EqualStringsConstraint.EqualStringsConstraint | ( | String | expected, |
| params object[] | parameters | ||
| ) |
Creates a new instance of the constraint.
| expected | the expected string value that will be used when the constraint is evaluated |
| parameters | an array of parameters which are used to format the expected and the actual string before the constraint is evaluated |
| Joutsen.NUnit3.EqualStringsConstraint.EqualStringsConstraint | ( | String | expected, |
| Map< string, object > | parameters | ||
| ) |
Creates a new instance of the constraint.
| expected | the expected string value that will be used when the constraint is evaluated |
| parameters | name value pairs which are used to format the expected and the actual string before the constraint is evaluated |
| Joutsen.NUnit3.EqualStringsConstraint.EqualStringsConstraint | ( | String | expected, |
| object | parameter | ||
| ) |
Creates a new instance of the constraint.
| expected | the expected string value that will be used when the constraint is evaluated |
| parameter | an object whose properties serve as name value pairs which are used to format the expected and the actual string before the constraint is evaluated |
| override ConstraintResult Joutsen.NUnit3.EqualStringsConstraint.ApplyTo< TActual > | ( | TActual | actual | ) |
Applies the constraint to the actual value.
| TActual | the type of the actual value |
| actual | the value to test the constraint against |
|
get |
Determines wether the evaluation should ignore the case of the strings characters.
|
get |
Determines wether whitespaces should be removed from the start and end of the actual string before the evaluation of the constraint.
|
get |
Provide a description of the constraint for messages.
|
get |
Creates a constraint that will ignore the case of the compared strings.
|
get |
Creates a constraint that will ignore the line breaks of the compared strings.
|
get |
Creates a constraint that will not remove the whitespaces from the beginning and end of the strings.
|
get |
Determines whether line breaks should be removed from the actual string before the evaluation of the constraint.