Skip to content

Instantly share code, notes, and snippets.

@darrencauthon
Created August 11, 2011 02:38
Show Gist options
  • Save darrencauthon/1138800 to your computer and use it in GitHub Desktop.
Save darrencauthon/1138800 to your computer and use it in GitHub Desktop.
Example of error with Philip Mateescu's di_speed tests
public void Run() {
if (k.IsRegistered<IDummy>())
k.Resolve<IDummy>().Do();
else
throw new InvalidOperationException(string.Format("{0} couldn't find a dummy to practice on.", this.Name));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment