Skip to content

Instantly share code, notes, and snippets.

@alexandrnikitin
Created January 15, 2013 18:43
Show Gist options
  • Save alexandrnikitin/4540908 to your computer and use it in GitHub Desktop.
Save alexandrnikitin/4540908 to your computer and use it in GitHub Desktop.
Returns resourceString then resourceString2 then exception.
var http = Substitute.For<IHttp>();
http.GetResponse(Arg.Any<string>()).Returns(resourceString, resourceString2);
http.GetResponse(Arg.Any<string>()).Returns(x => { throw new Exception(); });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment