Joutsen v0.5.0+12-g5dd5f7e
Static Public Member Functions | List of all members
Joutsen.NUnit3.EqualConstraintExtensions Class Reference

A convenience class which offers extension methods for string comparisons in unit tests. More...

Static Public Member Functions

static EqualStringsConstraint FormattedWith (this EqualConstraint constraint, params object[] parameters)
 Creates a constraint that formats the values before evaluation. More...
 
static EqualStringsConstraint FormattedWith (this EqualConstraint constraint, object parameter)
 Creates a constraint that formats the values before evaluation. More...
 
static EqualStringsConstraint FormattedWith (this EqualConstraint constraint, IDictionary< string, object > parameters)
 Creates a constraint that formats the values before evaluation. More...
 
static EqualStringsConstraint RemoveLineBreaks (this EqualConstraint constraint)
 Creates an equal constraint that will remove the line breaks before comparing the strings. More...
 

Detailed Description

A convenience class which offers extension methods for string comparisons in unit tests.

Since
0.2.1

Member Function Documentation

◆ FormattedWith() [1/3]

static EqualStringsConstraint Joutsen.NUnit3.EqualConstraintExtensions.FormattedWith ( this EqualConstraint  constraint,
IDictionary< string, object >  parameters 
)
static

Creates a constraint that formats the values before evaluation.

Parameters
constraintthe constraint
parametersthe parameters to format the strings with before the comparison
Returns
a constraint that formats the values before evaluation

◆ FormattedWith() [2/3]

static EqualStringsConstraint Joutsen.NUnit3.EqualConstraintExtensions.FormattedWith ( this EqualConstraint  constraint,
object  parameter 
)
static

Creates a constraint that formats the values before evaluation.

Parameters
constraintthe constraint
parameterthe parameter to format the strings with before the comparison
Returns
a constraint that formats the values before evaluation

◆ FormattedWith() [3/3]

static EqualStringsConstraint Joutsen.NUnit3.EqualConstraintExtensions.FormattedWith ( this EqualConstraint  constraint,
params object[]  parameters 
)
static

Creates a constraint that formats the values before evaluation.

Parameters
constraintthe constraint
parametersthe parameters to format the strings with before the comparison
Returns
a constraint that formats the values before evaluation

◆ RemoveLineBreaks()

static EqualStringsConstraint Joutsen.NUnit3.EqualConstraintExtensions.RemoveLineBreaks ( this EqualConstraint  constraint)
static

Creates an equal constraint that will remove the line breaks before comparing the strings.

Parameters
constraintthe constraint
Returns
a Framework.NUnit3.EqualStringsConstraint that will remove the line breaks before comparing the strings