Skip to content

Instantly share code, notes, and snippets.

View handcraftsman's full-sized avatar

Cℓinton Sheppard handcraftsman

View GitHub Profile
@scichelli
scichelli / BetterCollectionTest.cs
Created October 4, 2012 22:39
Collection Comparison
private void AssertStructure(string[] actualCollection, string[] expectedCollection)
{
var actual = string.Join(",", actualCollection);
var expected = string.Join(",", expectedCollection.Select(s => s == "..." ? ".*" : s)).Replace(",.*", ".*").Replace(".*,", ".*");
Assert.That(actual, Is.StringMatching(expected));
}