Skip to content

Instantly share code, notes, and snippets.

@ffMathy
Created August 22, 2018 20:32
Show Gist options
  • Save ffMathy/a4be08218012242e8b03af6fb7bfb312 to your computer and use it in GitHub Desktop.
Save ffMathy/a4be08218012242e8b03af6fb7bfb312 to your computer and use it in GitHub Desktop.
const mockedCalculator = Substitute.for<RealCalculator>();
mockedCalculator.add(1, 2);
mockedCalculator.received().add(Arg.any(), 2);
mockedCalculator.received().add(1, Arg.is(x => x >= 1 && x <= 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment