Skip to content

Instantly share code, notes, and snippets.

@HamidMosalla
Created August 3, 2017 04:36
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 HamidMosalla/1604e35c02a44b871a284552663f377a to your computer and use it in GitHub Desktop.
Save HamidMosalla/1604e35c02a44b871a284552663f377a to your computer and use it in GitHub Desktop.
[Fact]
public void VerifyPropertyIsSet_WithSpecificValue_WithVerifySet()
{
var mock = new Mock<IPropertyManager>();
var nameUser = new PropertyManagerConsumer(mock.Object);
nameUser.ChangeName("No Shrubbery!");
mock.VerifySet(m => m.FirstName = "No Shrubbery!");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment