Ejemplo n.º 1
0
 private static bool IsContainsItem(ConstraintExpressionPart constraintPart)
 {
     return(constraintPart.HelperClass?.Name == NunitFrameworkConstants.NameOfContains &&
            constraintPart.GetConstraintName() == NunitFrameworkConstants.NameOfContainsItem);
 }
Ejemplo n.º 2
0
 private static string ConstraintDiagnosticDescription(ConstraintExpressionPart constraintPart)
 {
     return(constraintPart.HelperClass?.Name != null
         ? $"{constraintPart.HelperClass?.Name}.{constraintPart.GetConstraintName()}"
         : (constraintPart.GetConstraintName() ?? ""));
 }
Ejemplo n.º 3
0
 private static bool IsDoesContain(ConstraintExpressionPart constraintPart)
 {
     return(constraintPart.GetConstraintName() == NunitFrameworkConstants.NameOfDoesContain);
 }