Skip to content

Instantly share code, notes, and snippets.

@grumpydev
Created January 25, 2011 21:08
Show Gist options
  • Save grumpydev/795664 to your computer and use it in GitHub Desktop.
Save grumpydev/795664 to your computer and use it in GitHub Desktop.
[Fact]
public void Should_support_implicit_casting_of_properties_to_guids_in_method_params()
{
dynamic parameters = new DynamicDictionary();
var guid = Guid.NewGuid();
parameters["test"] = guid;
Guid value = this.GetGuid(parameters["test"]);
value.ShouldEqual(guid);
}
private Guid GetGuid(Guid input)
{
return input;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment