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