Skip to content

Instantly share code, notes, and snippets.

@mgroves
Created May 5, 2011 20:08
Show Gist options
  • Select an option

  • Save mgroves/957808 to your computer and use it in GitHub Desktop.

Select an option

Save mgroves/957808 to your computer and use it in GitHub Desktop.
[TestFixture]
public class Class1
{
[Test]
public void test()
{
var result = Harbl(new { foo = "bar"});
Assert.That(result, Is.EqualTo("bar"));
}
public string Harbl(dynamic garbl)
{
return garbl.foo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment