Skip to content

Instantly share code, notes, and snippets.

@alexandrnikitin
alexandrnikitin / gist:4540908
Created January 15, 2013 18:43
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(); });