Skip to content

Instantly share code, notes, and snippets.

@PiotrPerak
Last active November 23, 2018 09:39
Show Gist options
  • Save PiotrPerak/9e93d6954cc5a0703f39bc6b38f28e48 to your computer and use it in GitHub Desktop.
Save PiotrPerak/9e93d6954cc5a0703f39bc6b38f28e48 to your computer and use it in GitHub Desktop.
[Test]
public void It_works_with_dependencies()
{
var dependency = new Mock<IDependency>();
// dependency setup
var sut = CreateSut(dependency.Object);
var result = testedObject.WorkWithDependency();
// assert result
dependency.Verify(d => d.WasNotified());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment