Skip to content

Instantly share code, notes, and snippets.

View jarshwah's full-sized avatar

Josh Smeaton jarshwah

View GitHub Profile
@jarshwah
jarshwah / TestHelper.cs
Created January 14, 2012 09:49 — forked from haacked/TestHelper.cs
String Comparison Unit Test Helper
public static class TestHelpers
{
public static void ShouldEqualWithDiff(this string actualValue, string expectedValue)
{
if (actualValue == expectedValue) return;
Console.WriteLine("Idx Expected Actual");
Console.WriteLine("---------------------");
var maxLength = Math.Max(actualValue.Length, expectedValue.Length);
for (int i = 0; i < maxLength; i++)