private string DescribeNonMatches(ICall call, ICallSpecification callSpecification) { var nonMatches = callSpecification.NonMatchingArguments(call) ?? new ArgumentMatchInfo[0]; var nonMatchingArgDescriptions = nonMatches.Select(x => x.DescribeNonMatch()).Where(x => !string.IsNullOrEmpty(x)).ToArray(); return(string.Join("\n", nonMatchingArgDescriptions)); }
private string DescribeNonMatches(ICall call, ICallSpecification callSpecification) { var nonMatches = callSpecification.NonMatchingArguments(call) ?? new ArgumentMatchInfo[0]; var nonMatchingArgDescriptions = nonMatches.Select(x => x.DescribeNonMatch()).Where(x => !string.IsNullOrEmpty(x)).ToArray(); return string.Join("\n", nonMatchingArgDescriptions); }
public string Format(ICall call, ICallSpecification withRespectToCallSpec) { return Format(call.GetMethodInfo(), call.GetArguments(), withRespectToCallSpec.NonMatchingArguments(call)); }