Skip to content Skip to sidebar Skip to footer
Showing posts with the label Mocking

Assert A Function/method Was Not Called Using Mock

Answer : This should work for your case; assert not my_var.called, 'method should not have… Read more Assert A Function/method Was Not Called Using Mock

Check If A Property Was Set - Using Moq

Answer : I think VerifySet is the right approach. It would look something like this: //Arrange… Read more Check If A Property Was Set - Using Moq