string formatting because lolwindows

This commit is contained in:
Brendan Forster
2014-03-08 17:30:30 +11:00
parent 5c662cdc80
commit f206478611
5 changed files with 30 additions and 3 deletions
@@ -19,7 +19,10 @@ namespace Octokit.Tests.Conventions
static string CreateMessage(Type type, IEnumerable<string> methods)
{
var methodsFormatted = String.Join("\r\n", methods.Select(m => String.Format(" - {0}", m)));
return String.Format("Methods found on type {0} which should be removed:\r\n{1}", type.Name, methodsFormatted);
return "Methods found on type {0} which should be removed:\r\n{1}"
.FormatWithNewLine(
type.Name,
methodsFormatted);
}
}
}