Skip to content

Instantly share code, notes, and snippets.

@johnnonolan
Created March 15, 2012 13:28
Show Gist options
  • Save johnnonolan/2044194 to your computer and use it in GitHub Desktop.
Save johnnonolan/2044194 to your computer and use it in GitHub Desktop.
public class MyController
{
//in state testing ALL we can test is the state of the result.
public ActionResult myAction()
{
//some controller stuff
return result;
}
}
public class MyController
{
//in state testing ALL we can test is the state of the result.
public ActionResult myAction()
{
//some controller stuff
return result;
}
}
public class MyService
{
// i should be testing here too!
public Bar Stuff(object foo)
{
//somecomplex stuff.
return new Bar();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment