Skip to content

Instantly share code, notes, and snippets.

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