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
@@ -0,0 +1,16 @@
using System;
namespace Octokit.Tests.Conventions
{
internal static class StringExtensions
{
public static string FormatWithNewLine(this string s, params object[] args)
{
var template = Environment.NewLine == "\r\n"
? s
: s.Replace("\r\n", Environment.NewLine);
return String.Format(template, args);
}
}
}