Permalink
Browse files

Fixing SL40 compile error due to no Array.ConvertAll in SL40.

  • Loading branch information...
dtchepak committed Mar 20, 2012
1 parent 344ddeb commit 85d49cd021343fa6be69544a27a29db0ce65d108
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/NSubstitute/Core/CallSpecification.cs
@@ -38,7 +38,7 @@ public IEnumerable<ArgumentMatchInfo> NonMatchingArguments(ICall call)
public override string ToString()
{
- var argSpecsAsStrings = Array.ConvertAll(_argumentSpecifications, x => x.ToString());
+ var argSpecsAsStrings = _argumentSpecifications.Select(x => x.ToString()).ToArray();
return CallFormatter.Format(_methodInfo, argSpecsAsStrings);
}

0 comments on commit 85d49cd

Please sign in to comment.