Skip to content

Instantly share code, notes, and snippets.

@stefansedich
Created May 23, 2011 09:19
Show Gist options
  • Save stefansedich/986454 to your computer and use it in GitHub Desktop.
Save stefansedich/986454 to your computer and use it in GitHub Desktop.
// Rhino Mocks
var foo = MockRepository.GenerateStub<IFoo>();
foo.Stub(x => x.GetValue())
.Return("testing");
// NSubstitute
var foo = Substitute.For<IFoo>();
foo.GetValue().Returns("testing");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment