Skip to content

Instantly share code, notes, and snippets.

@PiotrPerak
Last active November 23, 2018 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PiotrPerak/087c336ae308a53d72c126039c05ad5d to your computer and use it in GitHub Desktop.
Save PiotrPerak/087c336ae308a53d72c126039c05ad5d to your computer and use it in GitHub Desktop.
[Test]
public void It_works_with_another_dependency()
{
var dependency2 = new Mock<IDependency2>();
// dependency setup
var sut = CreateSut(dep2: dependency2.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