Mocking Python Python Mock Unit Testing Assert A Function/method Was Not Called Using Mock August 13, 2010 Post a Comment 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
C# Mocking Moq Properties Unit Testing Check If A Property Was Set - Using Moq March 17, 2010 Post a Comment 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